52 static auto rgba_fn = mf::build::SI4_SO<float, float, float, float, ColorGeometry4f>(
53 "RGB", [](
float r,
float g,
float b,
float a) {
return ColorGeometry4f(r, g,
b, a); });
54 static auto hsva_fn = mf::build::SI4_SO<float, float, float, float, ColorGeometry4f>(
55 "HSV", [](
float h,
float s,
float v,
float a) {
61 static auto hsla_fn = mf::build::SI4_SO<float, float, float, float, ColorGeometry4f>(
62 "HSL", [](
float h,
float s,
float l,
float a) {
69 switch (storage.
mode) {
93 "Mode of color processing",
103 ntype.
ui_name =
"Combine Color";
105 "Combine four channels into a single color, based on a particular color model";
#define NODE_CLASS_CONVERTER
#define NODE_STORAGE_FUNCS(StorageT)
#define FN_NODE_COMBINE_COLOR
#define BLI_assert_unreachable()
void hsv_to_rgb(float h, float s, float v, float *r_r, float *r_g, float *r_b)
void hsl_to_rgb(float h, float s, float l, float *r_r, float *r_g, float *r_b)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_storage_enum_accessors(member)
BMesh const char void * data
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert * v
void set_matching_fn(const mf::MultiFunction *fn)
void * MEM_callocN(size_t len, const char *str)
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_update(bNodeTree *, bNode *node)
static void node_build_multi_function(NodeMultiFunctionBuilder &builder)
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_init(bNodeTree *, bNode *node)
static void node_rna(StructRNA *srna)
static const mf::MultiFunction * get_multi_function(const bNode &bnode)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
void fn_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void node_combsep_color_label(const ListBase *sockets, NodeCombSepColorMode mode)
const EnumPropertyItem rna_enum_node_combsep_color_items[]
std::string ui_description
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeMultiFunctionBuildFunction build_multi_function
const char * enum_name_legacy
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void(* updatefunc)(bNodeTree *ntree, bNode *node)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)