24 b.add_input<
decl::Color>(
N_(
"Image")).default_value({0.0f, 0.0f, 0.0f, 1.0f});
25 b.add_input<
decl::Float>(
N_(
"Alpha")).default_value(1.0f).min(0.0f).max(1.0f);
26 b.add_input<
decl::Float>(
N_(
"Z")).default_value(1.0f).min(0.0f).max(1.0f);
31 ImageUser *iuser = MEM_cnew<ImageUser>(__func__);
32 node->storage = iuser;
struct Image * BKE_image_ensure_viewer(struct Main *bmain, int type, const char *name)
#define NODE_CLASS_OUTPUT
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
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)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
@ 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_viewer(bNodeTree *UNUSED(ntree), bNode *node)
static void node_composit_buts_viewer(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void cmp_node_viewer_declare(NodeDeclarationBuilder &b)
static void node_composit_buts_viewer_ex(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_cmp_viewer()
void node_copy_standard_storage(bNodeTree *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void(* draw_buttons_ex)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)
void(* draw_buttons)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)
NodeDeclareFunction declare