Blender  V2.59
Defines | Functions
TEX_util.c File Reference
#include <assert.h>
#include "TEX_util.h"

Go to the source code of this file.

Defines

#define PREV_RES   128

Functions

void tex_call_delegate (TexDelegate *dg, float *out, TexParams *params, short thread)
static void tex_input (float *out, int sz, bNodeStack *in, TexParams *params, short thread)
void tex_input_vec (float *out, bNodeStack *in, TexParams *params, short thread)
void tex_input_rgba (float *out, bNodeStack *in, TexParams *params, short thread)
float tex_input_value (bNodeStack *in, TexParams *params, short thread)
void params_from_cdata (TexParams *out, TexCallData *in)
void tex_do_preview (bNode *node, float *co, float *col)
void tex_output (bNode *node, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
void ntreeTexCheckCyclics (struct bNodeTree *ntree)
int ntreeTexExecTree (bNodeTree *nodes, TexResult *texres, float *co, float *dxt, float *dyt, int osatex, short thread, Tex *UNUSED(tex), short which_output, int cfra, int preview, ShadeInput *shi, MTex *mtex)

Detailed Description

Definition in file TEX_util.c.


Define Documentation

#define PREV_RES   128

Definition at line 53 of file TEX_util.c.


Function Documentation

void ntreeTexCheckCyclics ( struct bNodeTree ntree)
int ntreeTexExecTree ( bNodeTree nodes,
TexResult texres,
float *  co,
float *  dxt,
float *  dyt,
int  osatex,
short  thread,
Tex UNUSEDtex,
short  which_output,
int  cfra,
int  preview,
ShadeInput shi,
MTex mtex 
)
void params_from_cdata ( TexParams out,
TexCallData in 
)
void tex_call_delegate ( TexDelegate dg,
float *  out,
TexParams params,
short  thread 
)
void tex_do_preview ( bNode node,
float *  co,
float *  col 
)

Definition at line 119 of file TEX_util.c.

References nodeAddToPreview(), bNode::preview, bNodePreview::xsize, and bNodePreview::ysize.

Referenced by exec(), and tex_call_delegate().

static void tex_input ( float *  out,
int  sz,
bNodeStack in,
TexParams params,
short  thread 
) [static]
void tex_input_rgba ( float *  out,
bNodeStack in,
TexParams params,
short  thread 
)
float tex_input_value ( bNodeStack in,
TexParams params,
short  thread 
)
void tex_input_vec ( float *  out,
bNodeStack in,
TexParams params,
short  thread 
)

Definition at line 77 of file TEX_util.c.

References tex_input().

Referenced by colorfn(), exec(), tex_input_value(), and valuefn().

void tex_output ( bNode node,
bNodeStack **  in,
bNodeStack out,
TexFn  texfn,
TexCallData cdata 
)