Blender  V3.3
node_composite_math.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 /* **************** SCALAR MATH ******************** */
11 
13 
15 {
16  b.add_input<decl::Float>(N_("Value")).default_value(0.5f).min(-10000.0f).max(10000.0f);
17  b.add_input<decl::Float>(N_("Value"), "Value_001")
18  .default_value(0.5f)
19  .min(-10000.0f)
20  .max(10000.0f);
21  b.add_input<decl::Float>(N_("Value"), "Value_002")
22  .default_value(0.5f)
23  .min(-10000.0f)
24  .max(10000.0f);
25  b.add_output<decl::Float>(N_("Value"));
26 }
27 
28 } // namespace blender::nodes::node_composite_math_cc
29 
31 {
32  namespace file_ns = blender::nodes::node_composite_math_cc;
33 
34  static bNodeType ntype;
35 
38  ntype.labelfunc = node_math_label;
40 
41  nodeRegisterType(&ntype);
42 }
void node_type_update(struct bNodeType *ntype, void(*updatefunc)(struct bNodeTree *ntree, struct bNode *node))
Definition: node.cc:4443
#define NODE_CLASS_CONVERTER
Definition: BKE_node.h:351
#define CMP_NODE_MATH
Definition: BKE_node.h:1242
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
static void cmp_node_math_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_math()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void node_math_update(bNodeTree *ntree, bNode *node)
Definition: node_util.c:88
void node_math_label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen)
Definition: node_util.c:196
Defines a node type.
Definition: BKE_node.h:226
void(* labelfunc)(const struct bNodeTree *ntree, const struct bNode *node, char *label, int maxlen)
Definition: BKE_node.h:256
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)