Blender V2.61 - r43446
Functions | Variables

node_texture_curves.c File Reference

#include "node_texture_util.h"
#include "NOD_texture.h"

Go to the source code of this file.

Functions

static void time_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **UNUSED(in), short UNUSED(thread))
static void time_exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
static void time_init (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
void register_node_type_tex_curve_time (bNodeTreeType *ttype)
static void rgb_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
static void rgb_exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
static void rgb_init (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
void register_node_type_tex_curve_rgb (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate time_outputs []
static bNodeSocketTemplate rgb_inputs []
static bNodeSocketTemplate rgb_outputs []

Detailed Description

Definition in file node_texture_curves.c.


Function Documentation

void register_node_type_tex_curve_rgb ( bNodeTreeType ttype)
void register_node_type_tex_curve_time ( bNodeTreeType ttype)
static void rgb_colorfn ( float *  out,
TexParams p,
bNode node,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 94 of file node_texture_curves.c.

References curvemapping_evaluateRGBF(), bNode::storage, and tex_input_rgba().

Referenced by rgb_exec().

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

Definition at line 103 of file node_texture_curves.c.

References rgb_colorfn(), and tex_output().

Referenced by register_node_type_tex_curve_rgb().

static void rgb_init ( bNodeTree UNUSEDntree,
bNode node,
bNodeTemplate UNUSEDntemp 
) [static]

Definition at line 108 of file node_texture_curves.c.

References curvemapping_add(), and bNode::storage.

Referenced by register_node_type_tex_curve_rgb().

static void time_colorfn ( float *  out,
TexParams p,
bNode node,
bNodeStack **  UNUSEDin,
short   UNUSEDthread 
) [static]
static void time_exec ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 56 of file node_texture_curves.c.

References tex_output(), and time_colorfn().

Referenced by register_node_type_tex_curve_time().

static void time_init ( bNodeTree UNUSEDntree,
bNode node,
bNodeTemplate UNUSEDntemp 
) [static]

Variable Documentation

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

Definition at line 84 of file node_texture_curves.c.

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

Definition at line 89 of file node_texture_curves.c.

Initial value:
 {
    { SOCK_FLOAT, 0, "Value" },
    { -1, 0, "" }
}

Definition at line 39 of file node_texture_curves.c.