Blender  V2.59
Functions | Variables
TEX_decompose.c File Reference
#include "../TEX_util.h"
#include "TEX_node.h"
#include <math.h>

Go to the source code of this file.

Functions

static void valuefn_r (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void valuefn_g (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void valuefn_b (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void valuefn_a (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_decompose (ListBase *lb)

Variables

static bNodeSocketType inputs []
static bNodeSocketType outputs []

Detailed Description

Definition in file TEX_decompose.c.


Function Documentation

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

Definition at line 74 of file TEX_decompose.c.

References tex_output(), valuefn_a(), valuefn_b(), valuefn_g(), and valuefn_r().

Referenced by register_node_type_tex_decompose().

void register_node_type_tex_decompose ( ListBase lb)
static void valuefn_a ( float *  out,
TexParams p,
bNode UNUSEDnode,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 68 of file TEX_decompose.c.

References tex_input_rgba().

Referenced by exec().

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

Definition at line 62 of file TEX_decompose.c.

References tex_input_rgba().

Referenced by exec().

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

Definition at line 56 of file TEX_decompose.c.

References tex_input_rgba().

Referenced by exec().

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

Definition at line 50 of file TEX_decompose.c.

References tex_input_rgba().

Referenced by exec().


Variable Documentation

bNodeSocketType inputs[] [static]
Initial value:
 {
        { SOCK_RGBA, 1, "Color", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f },
        { -1, 0, "" }
}

Definition at line 38 of file TEX_decompose.c.

Initial value:
 {
        { SOCK_VALUE, 0, "Red",   0.0f, 0.0f, 0.0f, 0.0f,  0.0f, 1.0f },
        { SOCK_VALUE, 0, "Green", 0.0f, 0.0f, 0.0f, 0.0f,  0.0f, 1.0f },
        { SOCK_VALUE, 0, "Blue",  0.0f, 0.0f, 0.0f, 0.0f,  0.0f, 1.0f },
        { SOCK_VALUE, 0, "Alpha", 1.0f, 0.0f, 0.0f, 0.0f,  0.0f, 1.0f },
        { -1, 0, "" }
}

Definition at line 42 of file TEX_decompose.c.