Blender V5.0
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()

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

Definition at line 82 of file node_texture_curves.cc.

References BKE_curvemapping_evaluateRGBF(), in, out, bNode::storage, and tex_input_rgba().

Referenced by rgb_exec().

◆ rgb_exec()

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

Definition at line 91 of file node_texture_curves.cc.

References data, in, out, rgb_colorfn(), and tex_output().

Referenced by register_node_type_tex_curve_rgb().

◆ rgb_init()

void rgb_init ( bNodeTree * ,
bNode * node )
static

Definition at line 101 of file node_texture_curves.cc.

References BKE_curvemapping_add(), and bNode::storage.

Referenced by register_node_type_tex_curve_rgb().

◆ time_colorfn()

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

◆ time_exec()

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 data, in, out, tex_output(), and time_colorfn().

Referenced by register_node_type_tex_curve_time().

◆ time_init()

void time_init ( bNodeTree * ,
bNode * node )
static

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 72 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 77 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().