Blender V2.61 - r43446
Typedefs | Functions | Variables

blender_shader.cpp File Reference

#include "background.h"
#include "graph.h"
#include "light.h"
#include "nodes.h"
#include "scene.h"
#include "shader.h"
#include "blender_sync.h"
#include "blender_util.h"
#include "util_debug.h"

Go to the source code of this file.

Typedefs

typedef pair< ShaderNode
*, std::string > 
SocketPair
typedef map< void *, SocketPairPtrSockMap

Functions

static BL::NodeSocket get_node_output (BL::Node b_node, const string &name)
static float3 get_node_output_rgba (BL::Node b_node, const string &name)
static float get_node_output_value (BL::Node b_node, const string &name)
static void get_tex_mapping (TextureMapping *mapping, BL::TexMapping b_mapping)
static void get_tex_mapping (TextureMapping *mapping, BL::ShaderNodeMapping b_mapping)
static ShaderNodeadd_node (BL::BlendData b_data, ShaderGraph *graph, BL::ShaderNode b_node)
static SocketPair node_socket_map_pair (PtrNodeMap &node_map, BL::Node b_node, BL::NodeSocket b_socket)
static ShaderSocketType convert_socket_type (BL::NodeSocket::type_enum b_type)
static void set_default_value (ShaderInput *input, BL::NodeSocket sock)
static void add_nodes (BL::BlendData b_data, ShaderGraph *graph, BL::ShaderNodeTree b_ntree, PtrSockMap &sockets_map)

Variables

CCL_NAMESPACE_BEGIN typedef
map< void *, ShaderNode * > 
PtrNodeMap

Typedef Documentation

typedef map<void*, SocketPair> PtrSockMap

Definition at line 35 of file blender_shader.cpp.

typedef pair<ShaderNode*, std::string> SocketPair

Definition at line 34 of file blender_shader.cpp.


Function Documentation

static ShaderNode* add_node ( BL::BlendData  b_data,
ShaderGraph graph,
BL::ShaderNode  b_node 
) [static]
static void add_nodes ( BL::BlendData  b_data,
ShaderGraph graph,
BL::ShaderNodeTree  b_ntree,
PtrSockMap sockets_map 
) [static]
static ShaderSocketType convert_socket_type ( BL::NodeSocket::type_enum  b_type) [static]
static BL::NodeSocket get_node_output ( BL::Node  b_node,
const string &  name 
) [static]

Definition at line 53 of file blender_shader.cpp.

References assert.

Referenced by get_node_output_rgba(), and get_node_output_value().

static float3 get_node_output_rgba ( BL::Node  b_node,
const string &  name 
) [static]

Definition at line 66 of file blender_shader.cpp.

References get_float3(), and get_node_output().

Referenced by add_node().

static float get_node_output_value ( BL::Node  b_node,
const string &  name 
) [static]

Definition at line 72 of file blender_shader.cpp.

References get_node_output().

Referenced by add_node().

static void get_tex_mapping ( TextureMapping mapping,
BL::ShaderNodeMapping  b_mapping 
) [static]
static void get_tex_mapping ( TextureMapping mapping,
BL::TexMapping  b_mapping 
) [static]
static SocketPair node_socket_map_pair ( PtrNodeMap node_map,
BL::Node  b_node,
BL::NodeSocket  b_socket 
) [static]

Definition at line 410 of file blender_shader.cpp.

References string_printf().

Referenced by add_nodes().

static void set_default_value ( ShaderInput input,
BL::NodeSocket  sock 
) [static]

Variable Documentation

CCL_NAMESPACE_BEGIN typedef map<void*, ShaderNode*> PtrNodeMap

Definition at line 33 of file blender_shader.cpp.

Referenced by add_nodes().