Blender  V2.93
Classes | Typedefs | Functions
node_texture_util.h File Reference
#include <math.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_color_types.h"
#include "DNA_image_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_node.h"
#include "BKE_texture.h"
#include "NOD_texture.h"
#include "node_util.h"
#include "BLT_translation.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_pipeline.h"
#include "RE_texture.h"

Go to the source code of this file.

Classes

struct  TexCallData
 
struct  TexParams
 
struct  TexDelegate
 

Typedefs

typedef struct TexCallData TexCallData
 
typedef struct TexParams TexParams
 
typedef void(* TexFn) (float *out, TexParams *params, bNode *node, bNodeStack **in, short thread)
 
typedef struct TexDelegate TexDelegate
 

Functions

bool tex_node_poll_default (struct bNodeType *ntype, struct bNodeTree *ntree, const char **r_disabled_hint)
 
void tex_node_type_base (struct bNodeType *ntype, int type, const char *name, short nclass, short flag)
 
void tex_input_rgba (float *out, bNodeStack *in, TexParams *params, short thread)
 
void tex_input_vec (float *out, bNodeStack *in, TexParams *params, short thread)
 
float tex_input_value (bNodeStack *in, TexParams *params, short thread)
 
void tex_output (bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *data)
 
void tex_do_preview (bNodePreview *preview, const float coord[2], const float col[4], bool do_manage)
 
void params_from_cdata (TexParams *out, TexCallData *in)
 

Typedef Documentation

◆ TexCallData

typedef struct TexCallData TexCallData

◆ TexDelegate

typedef struct TexDelegate TexDelegate

◆ TexFn

typedef void(* TexFn) (float *out, TexParams *params, bNode *node, bNodeStack **in, short thread)

Definition at line 98 of file node_texture_util.h.

◆ TexParams

typedef struct TexParams TexParams

Function Documentation

◆ params_from_cdata()

void params_from_cdata ( TexParams out,
TexCallData in 
)

◆ tex_do_preview()

void tex_do_preview ( bNodePreview preview,
const float  coord[2],
const float  col[4],
bool  do_manage 
)

◆ tex_input_rgba()

void tex_input_rgba ( float out,
bNodeStack in,
TexParams params,
short  thread 
)

◆ tex_input_value()

float tex_input_value ( bNodeStack in,
TexParams params,
short  thread 
)

◆ tex_input_vec()

void tex_input_vec ( float out,
bNodeStack in,
TexParams params,
short  thread 
)

Definition at line 87 of file node_texture_util.c.

References params, and tex_input().

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

◆ tex_node_poll_default()

bool tex_node_poll_default ( struct bNodeType ntype,
struct bNodeTree ntree,
const char **  r_disabled_hint 
)

◆ tex_node_type_base()

void tex_node_type_base ( struct bNodeType ntype,
int  type,
const char *  name,
short  nclass,
short  flag 
)

◆ tex_output()

void tex_output ( bNode node,
bNodeExecData execdata,
bNodeStack **  in,
bNodeStack out,
TexFn  texfn,
TexCallData data 
)