Blender V2.61 - r43446
Functions | Variables

node_shader_tree.c File Reference

#include <string.h>
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BLF_translation.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_scene.h"
#include "BKE_utildefines.h"
#include "GPU_material.h"
#include "RE_shader_ext.h"
#include "node_exec.h"
#include "node_util.h"
#include "node_shader_util.h"

Go to the source code of this file.

Functions

static void foreach_nodetree (Main *main, void *calldata, bNodeTreeCallback func)
static void foreach_nodeclass (Scene *scene, void *calldata, bNodeClassCallback func)
static void local_sync (bNodeTree *localtree, bNodeTree *ntree)
static void update (bNodeTree *ntree)
void ntreeGPUMaterialNodes (bNodeTree *ntree, GPUMaterial *mat)
void set_node_shader_lamp_loop (void(*lamp_loop_func)(ShadeInput *, ShadeResult *))
bNodeTreeExecntreeShaderBeginExecTree (bNodeTree *ntree, int use_tree_data)
void ntreeShaderEndExecTree (bNodeTreeExec *exec, int use_tree_data)
void ntreeShaderExecTree (bNodeTree *ntree, ShadeInput *shi, ShadeResult *shr)

Variables

bNodeTreeType ntreeType_Shader
void(* node_shader_lamp_loop )(struct ShadeInput *, struct ShadeResult *)

Detailed Description

Definition in file node_shader_tree.c.


Function Documentation

static void foreach_nodeclass ( Scene scene,
void *  calldata,
bNodeClassCallback  func 
) [static]
static void foreach_nodetree ( Main main,
void *  calldata,
bNodeTreeCallback  func 
) [static]
static void local_sync ( bNodeTree localtree,
bNodeTree ntree 
) [static]
void ntreeGPUMaterialNodes ( bNodeTree ntree,
GPUMaterial mat 
)
bNodeTreeExec* ntreeShaderBeginExecTree ( bNodeTree ntree,
int  use_tree_data 
) [read]
void ntreeShaderEndExecTree ( bNodeTreeExec exec,
int  use_tree_data 
)
void ntreeShaderExecTree ( bNodeTree ntree,
ShadeInput shi,
ShadeResult shr 
)
void set_node_shader_lamp_loop ( void(*)(ShadeInput *, ShadeResult *)  lamp_loop_func)

Definition at line 161 of file node_shader_tree.c.

References node_shader_lamp_loop.

static void update ( bNodeTree ntree) [static]

Definition at line 118 of file node_shader_tree.c.

References ntreeSetOutput().


Variable Documentation

void(* node_shader_lamp_loop)(struct ShadeInput *, struct ShadeResult *)

Definition at line 159 of file node_shader_tree.c.

Referenced by node_shader_exec_material(), and set_node_shader_lamp_loop().