Blender  V3.3
node_composite_sepcomb_rgba.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2006 Blender Foundation. All rights reserved. */
3 
8 #include "node_composite_util.hh"
9 
10 /* **************** SEPARATE RGBA ******************** */
12 
14 {
15  b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
16  b.add_output<decl::Float>(N_("R"));
17  b.add_output<decl::Float>(N_("G"));
18  b.add_output<decl::Float>(N_("B"));
19  b.add_output<decl::Float>(N_("A"));
20 }
21 
22 } // namespace blender::nodes::node_composite_sepcomb_rgba_cc
23 
25 {
27 
28  static bNodeType ntype;
29 
32  ntype.gather_link_search_ops = nullptr;
33 
34  nodeRegisterType(&ntype);
35 }
36 
37 /* **************** COMBINE RGBA ******************** */
38 
40 
42 {
43  b.add_input<decl::Float>(N_("R")).min(0.0f).max(1.0f);
44  b.add_input<decl::Float>(N_("G")).min(0.0f).max(1.0f);
45  b.add_input<decl::Float>(N_("B")).min(0.0f).max(1.0f);
46  b.add_input<decl::Float>(N_("A")).default_value(1.0f).min(0.0f).max(1.0f);
47  b.add_output<decl::Color>(N_("Image"));
48 }
49 
50 } // namespace blender::nodes::node_composite_sepcomb_rgba_cc
51 
53 {
55 
56  static bNodeType ntype;
57 
60  ntype.gather_link_search_ops = nullptr;
61 
62  nodeRegisterType(&ntype);
63 }
#define CMP_NODE_SEPRGBA_LEGACY
Definition: BKE_node.h:1211
#define NODE_CLASS_CONVERTER
Definition: BKE_node.h:351
#define CMP_NODE_COMBRGBA_LEGACY
Definition: BKE_node.h:1222
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
static void cmp_node_combrgba_declare(NodeDeclarationBuilder &b)
static void cmp_node_seprgba_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_combrgba()
void register_node_type_cmp_seprgba()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
#define min(a, b)
Definition: sort.c:35
Defines a node type.
Definition: BKE_node.h:226
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
Definition: BKE_node.h:335
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)