Blender  V2.59
Functions | Variables
TEX_checker.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 colorfn (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_checker (ListBase *lb)

Variables

static bNodeSocketType inputs []
static bNodeSocketType outputs []

Detailed Description

Definition in file TEX_checker.c.


Function Documentation

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

Definition at line 49 of file TEX_checker.c.

References TexParams::co, fabs(), tex_input_rgba(), tex_input_value(), ImBuf::x, and ImBuf::y.

Referenced by exec().

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

Definition at line 68 of file TEX_checker.c.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_checker().

void register_node_type_tex_checker ( ListBase lb)

Variable Documentation

bNodeSocketType inputs[] [static]
Initial value:
 {
        { SOCK_RGBA, 1, "Color1", 1.0f, 0.0f, 0.0f, 1.0f,  0.0f, 1.0f },
        { SOCK_RGBA, 1, "Color2", 1.0f, 1.0f, 1.0f, 1.0f,  0.0f, 1.0f },
        { SOCK_VALUE, 1, "Size",   0.5f, 0.0f, 0.0f, 0.0f,  0.0f, 100.0f },
        { -1, 0, "" }
}

Definition at line 38 of file TEX_checker.c.

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

Definition at line 44 of file TEX_checker.c.