Blender V2.61 - r43446
Functions | Variables

node_texture_rotate.c File Reference

#include <math.h>
#include "node_texture_util.h"
#include "NOD_texture.h"

Go to the source code of this file.

Functions

static void rotate (float new_co[3], float a, float ax[3], float co[3])
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_rotate (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate inputs []
static bNodeSocketTemplate outputs []

Detailed Description

Definition in file node_texture_rotate.c.


Function Documentation

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

Definition at line 93 of file node_texture_rotate.c.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_rotate().

void register_node_type_tex_rotate ( bNodeTreeType ttype)
static void rotate ( float  new_co[3],
float  a,
float  ax[3],
float  co[3] 
) [static]

Definition at line 50 of file node_texture_rotate.c.

References cos(), cross_v3_v3v3(), dot_v3v3(), M_PI, mul_v3_fl(), mul_v3_v3fl(), and sin().

Referenced by colorfn().


Variable Documentation

Initial value:
 { 
    { SOCK_RGBA, 1, "Color", 0.0f, 0.0f, 0.0f, 1.0f},
    { SOCK_FLOAT, 1, "Turns",   0.0f, 0.0f, 0.0f, 0.0f,  -1.0f, 1.0f, PROP_NONE },
    { SOCK_VECTOR, 1, "Axis",   0.0f, 0.0f, 1.0f, 0.0f,  -1.0f, 1.0f, PROP_DIRECTION },
    { -1, 0, "" } 
}

Definition at line 38 of file node_texture_rotate.c.

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

Definition at line 45 of file node_texture_rotate.c.