Blender V2.61 - r43446
|
#include "node_texture_util.h"
#include "NOD_texture.h"
Go to the source code of this file.
Functions | |
static void | colorfn (float *out, TexParams *p, bNode *node, bNodeStack **UNUSED(in), short UNUSED(thread)) |
static void | exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out) |
static void | init (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp)) |
void | register_node_type_tex_image (bNodeTreeType *ttype) |
Variables | |
static bNodeSocketTemplate | outputs [] |
Definition in file node_texture_image.c.
static void colorfn | ( | float * | out, |
TexParams * | p, | ||
bNode * | node, | ||
bNodeStack ** | UNUSEDin, | ||
short | UNUSEDthread | ||
) | [static] |
Definition at line 41 of file node_texture_image.c.
References BKE_image_get_ibuf(), BLI_lock_thread(), BLI_unlock_thread(), TexParams::co, copy_v4_v4(), bNode::id, IMB_float_from_rect(), LOCK_IMAGE, ImBuf::rect_float, bNode::storage, ImBuf::x, and ImBuf::y.
Referenced by exec().
static void exec | ( | void * | data, |
bNode * | node, | ||
bNodeStack ** | in, | ||
bNodeStack ** | out | ||
) | [static] |
Definition at line 84 of file node_texture_image.c.
References colorfn(), and tex_output().
Referenced by register_node_type_tex_image().
static void init | ( | bNodeTree * | UNUSEDntree, |
bNode * | node, | ||
bNodeTemplate * | UNUSEDntemp | ||
) | [static] |
Definition at line 89 of file node_texture_image.c.
References ImageUser::fie_ima, MEM_callocN(), ImageUser::ok, ImageUser::sfra, and bNode::storage.
void register_node_type_tex_image | ( | bNodeTreeType * | ttype | ) |
Definition at line 98 of file node_texture_image.c.
References exec(), init(), NODE_CLASS_INPUT, node_copy_standard_storage(), node_free_standard_storage(), NODE_OPTIONS, NODE_PREVIEW, node_type_base(), node_type_exec(), node_type_init(), node_type_size(), node_type_socket_templates(), node_type_storage(), nodeRegisterType(), NULL, and TEX_NODE_IMAGE.
Referenced by registerTextureNodes().
bNodeSocketTemplate outputs[] [static] |
{ { SOCK_RGBA, 0, "Image"}, { -1, 0, "" } }
Definition at line 36 of file node_texture_image.c.