19 b.add_input<
decl::Color>(
N_(
"Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
20 b.add_input<
decl::Float>(
N_(
"Alpha")).default_value(1.0f).min(0.0f).max(1.0f);
26 NodeSetAlpha *settings = MEM_cnew<NodeSetAlpha>(__func__);
27 node->storage = settings;
#define NODE_CLASS_CONVERTER
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
#define CMP_NODE_SETALPHA
void node_type_storage(struct bNodeType *ntype, const char *storagename, void(*freefunc)(struct bNode *node), void(*copyfunc)(struct bNodeTree *dest_ntree, struct bNode *dest_node, const struct bNode *src_node))
void nodeRegisterType(struct bNodeType *ntype)
@ CMP_NODE_SETALPHA_MODE_APPLY
@ UI_ITEM_R_SPLIT_EMPTY_NAME
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
static void node_composit_init_setalpha(bNodeTree *UNUSED(ntree), bNode *node)
static void cmp_node_setalpha_declare(NodeDeclarationBuilder &b)
static void node_composit_buts_set_alpha(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_setalpha()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void node_copy_standard_storage(bNodeTree *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
void(* draw_buttons)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)
NodeDeclareFunction declare