Blender  V2.59
Functions | Variables
TEX_valToRgb.c File Reference
#include "../TEX_util.h"
#include "TEX_node.h"

Go to the source code of this file.

Functions

static void valtorgb_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
static void valtorgb_exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
static void valtorgb_init (bNode *node)
void register_node_type_tex_valtorgb (ListBase *lb)
static void rgbtobw_valuefn (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void rgbtobw_exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_rgbtobw (ListBase *lb)

Variables

static bNodeSocketType valtorgb_in []
static bNodeSocketType valtorgb_out []
static bNodeSocketType rgbtobw_in []
static bNodeSocketType rgbtobw_out []

Detailed Description

Definition in file TEX_valToRgb.c.


Function Documentation

void register_node_type_tex_rgbtobw ( ListBase lb)
void register_node_type_tex_valtorgb ( ListBase lb)
static void rgbtobw_exec ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 100 of file TEX_valToRgb.c.

References rgbtobw_valuefn(), and tex_output().

Referenced by register_node_type_tex_rgbtobw().

static void rgbtobw_valuefn ( float *  out,
TexParams p,
bNode UNUSEDnode,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 92 of file TEX_valToRgb.c.

References tex_input_rgba().

Referenced by rgbtobw_exec().

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

Definition at line 48 of file TEX_valToRgb.c.

References do_colorband(), bNode::storage, and tex_input_value().

Referenced by valtorgb_exec().

static void valtorgb_exec ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 57 of file TEX_valToRgb.c.

References tex_output(), and valtorgb_colorfn().

Referenced by register_node_type_tex_valtorgb().

static void valtorgb_init ( bNode node) [static]

Definition at line 62 of file TEX_valToRgb.c.

References add_colorband(), and bNode::storage.

Referenced by register_node_type_tex_valtorgb().


Variable Documentation

Initial value:
 {
        {       SOCK_RGBA, 1, "Color",                  0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 82 of file TEX_valToRgb.c.

Initial value:
 {
        {       SOCK_VALUE, 0, "Val",                   0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 86 of file TEX_valToRgb.c.

Initial value:
 {
        {       SOCK_VALUE, 1, "Fac",                   0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 39 of file TEX_valToRgb.c.

Initial value:
 {
        {       SOCK_RGBA, 0, "Color",                  0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 43 of file TEX_valToRgb.c.