Blender  V3.3
node_composite_sepcomb_xyz.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation. All rights reserved. */
3 
8 #include "node_composite_util.hh"
9 
10 /* **************** SEPARATE XYZ ******************** */
11 namespace blender::nodes {
12 
14 {
15  b.add_input<decl::Vector>("Vector").min(-10000.0f).max(10000.0f);
16  b.add_output<decl::Float>("X");
17  b.add_output<decl::Float>("Y");
18  b.add_output<decl::Float>("Z");
19 }
20 
21 } // namespace blender::nodes
22 
24 {
25  static bNodeType ntype;
26 
29 
30  nodeRegisterType(&ntype);
31 }
32 
33 /* **************** COMBINE XYZ ******************** */
34 
35 namespace blender::nodes {
36 
38 {
39  b.add_input<decl::Float>("X").min(-10000.0f).max(10000.0f);
40  b.add_input<decl::Float>("Y").min(-10000.0f).max(10000.0f);
41  b.add_input<decl::Float>("Z").min(-10000.0f).max(10000.0f);
42  b.add_output<decl::Vector>("Vector");
43 }
44 
45 } // namespace blender::nodes
46 
48 {
49  static bNodeType ntype;
50 
53 
54  nodeRegisterType(&ntype);
55 }
#define CMP_NODE_COMBINE_XYZ
Definition: BKE_node.h:1297
#define NODE_CLASS_CONVERTER
Definition: BKE_node.h:351
#define CMP_NODE_SEPARATE_XYZ
Definition: BKE_node.h:1296
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
static void cmp_node_combine_xyz_declare(NodeDeclarationBuilder &b)
static void cmp_node_separate_xyz_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_separate_xyz()
void register_node_type_cmp_combine_xyz()
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
NodeDeclareFunction declare
Definition: BKE_node.h:324