Blender V4.3
node_texture_curves.cc File Reference
#include <algorithm>
#include "BKE_colortools.hh"
#include "node_texture_util.hh"
#include "node_util.hh"

Go to the source code of this file.

Functions

static void time_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **, short)
 
static void time_exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
static void time_init (bNodeTree *, bNode *node)
 
void register_node_type_tex_curve_time ()
 
static void rgb_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void rgb_exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
static void rgb_init (bNodeTree *, bNode *node)
 
void register_node_type_tex_curve_rgb ()
 

Variables

static blender::bke::bNodeSocketTemplate time_outputs [] = {{SOCK_FLOAT, N_("Value")}, {-1, ""}}
 
static blender::bke::bNodeSocketTemplate rgb_inputs []
 
static blender::bke::bNodeSocketTemplate rgb_outputs []
 

Function Documentation

◆ register_node_type_tex_curve_rgb()

◆ register_node_type_tex_curve_time()

◆ rgb_colorfn()

static void rgb_colorfn ( float * out,
TexParams * p,
bNode * node,
bNodeStack ** in,
short thread )
static

Definition at line 79 of file node_texture_curves.cc.

References BKE_curvemapping_evaluateRGBF(), and tex_input_rgba().

Referenced by rgb_exec().

◆ rgb_exec()

static void rgb_exec ( void * data,
int ,
bNode * node,
bNodeExecData * execdata,
bNodeStack ** in,
bNodeStack ** out )
static

Definition at line 88 of file node_texture_curves.cc.

References rgb_colorfn(), and tex_output().

Referenced by register_node_type_tex_curve_rgb().

◆ rgb_init()

static void rgb_init ( bNodeTree * ,
bNode * node )
static

Definition at line 98 of file node_texture_curves.cc.

References BKE_curvemapping_add().

Referenced by register_node_type_tex_curve_rgb().

◆ time_colorfn()

static void time_colorfn ( float * out,
TexParams * p,
bNode * node,
bNodeStack ** ,
short  )
static

Definition at line 20 of file node_texture_curves.cc.

References BKE_curvemapping_evaluateF(), BKE_curvemapping_init(), and TexParams::cfra.

Referenced by time_exec().

◆ time_exec()

static void time_exec ( void * data,
int ,
bNode * node,
bNodeExecData * execdata,
bNodeStack ** in,
bNodeStack ** out )
static

Definition at line 36 of file node_texture_curves.cc.

References tex_output(), and time_colorfn().

Referenced by register_node_type_tex_curve_time().

◆ time_init()

static void time_init ( bNodeTree * ,
bNode * node )
static

Definition at line 46 of file node_texture_curves.cc.

References BKE_curvemapping_add().

Referenced by register_node_type_tex_curve_time().

Variable Documentation

◆ rgb_inputs

blender::bke::bNodeSocketTemplate rgb_inputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f},
{-1, ""},
}
@ SOCK_RGBA
#define N_(msgid)

Definition at line 69 of file node_texture_curves.cc.

Referenced by register_node_type_tex_curve_rgb().

◆ rgb_outputs

blender::bke::bNodeSocketTemplate rgb_outputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 74 of file node_texture_curves.cc.

Referenced by register_node_type_tex_curve_rgb().

◆ time_outputs

blender::bke::bNodeSocketTemplate time_outputs[] = {{SOCK_FLOAT, N_("Value")}, {-1, ""}}
static

Definition at line 18 of file node_texture_curves.cc.

Referenced by register_node_type_tex_curve_time().