|
Blender
V2.93
|
#include "node_texture_util.h"Go to the source code of this file.
Functions | |
| bool | tex_node_poll_default (bNodeType *UNUSED(ntype), bNodeTree *ntree, const char **r_disabled_hint) |
| void | tex_node_type_base (struct bNodeType *ntype, int type, const char *name, short nclass, short flag) |
| static 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 (bNodePreview *preview, const float coord[2], const float col[4], bool do_manage) |
| void | tex_output (bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata) |
| void | ntreeTexCheckCyclics (struct bNodeTree *ntree) |
| void ntreeTexCheckCyclics | ( | struct bNodeTree * | ntree | ) |
Definition at line 170 of file node_texture_util.c.
References ListBase::first, if(), node, bNodeTree::nodes, Tex::nodetree, ntree, ntreeTexCheckCyclics(), tex, TEX_NODE_TEXTURE, and Tex::use_nodes.
Referenced by ED_node_tag_update_nodetree(), node_add_node(), and ntreeTexCheckCyclics().
| void params_from_cdata | ( | TexParams * | out, |
| TexCallData * | in | ||
| ) |
Definition at line 116 of file node_texture_util.c.
References TexCallData::cfra, TexParams::cfra, TexCallData::co, TexParams::co, TexCallData::dxt, TexParams::dxt, TexCallData::dyt, TexParams::dyt, TexCallData::mtex, TexParams::mtex, TexCallData::osatex, TexParams::osatex, and TexParams::previewco.
Referenced by exec().
|
static |
Definition at line 63 of file node_texture_util.c.
References TexDelegate::cdata, TexCallData::do_manage, TexCallData::do_preview, TexDelegate::fn, TexDelegate::in, bNode::need_exec, TexDelegate::node, params, TexDelegate::preview, and tex_do_preview().
Referenced by tex_input().
| void tex_do_preview | ( | bNodePreview * | preview, |
| const float | coord[2], | ||
| const float | col[4], | ||
| bool | do_manage | ||
| ) |
Definition at line 127 of file node_texture_util.c.
References BKE_node_preview_set_pixel(), col, bNodePreview::xsize, and bNodePreview::ysize.
Referenced by exec(), and tex_call_delegate().
|
static |
Definition at line 74 of file node_texture_util.c.
References bNodeStack::data, bNodeStack::hasoutput, params, SOCK_FLOAT, bNodeStack::sockettype, tex_call_delegate(), and bNodeStack::vec.
Referenced by blender::gpu::debug::check_gl_resources(), tex_input_rgba(), and tex_input_vec().
| void tex_input_rgba | ( | float * | out, |
| bNodeStack * | in, | ||
| TexParams * | params, | ||
| short | thread | ||
| ) |
Definition at line 92 of file node_texture_util.c.
References bNodeStack::hasoutput, params, SOCK_FLOAT, SOCK_VECTOR, bNodeStack::sockettype, and tex_input().
Referenced by colorfn(), exec(), rgb_colorfn(), rgbtobw_valuefn(), texfn(), valuefn_a(), valuefn_b(), valuefn_g(), and valuefn_r().
| float tex_input_value | ( | bNodeStack * | in, |
| TexParams * | params, | ||
| short | thread | ||
| ) |
Definition at line 109 of file node_texture_util.c.
References params, and tex_input_vec().
Referenced by clouds_map_inputs(), colorfn(), distnoise_map_inputs(), magic_map_inputs(), marble_map_inputs(), musgrave_map_inputs(), normalfn(), stucci_map_inputs(), valtorgb_colorfn(), valuefn(), voronoi_map_inputs(), and wood_map_inputs().
| 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().
| bool tex_node_poll_default | ( | bNodeType * | UNUSEDntype, |
| bNodeTree * | ntree, | ||
| const char ** | r_disabled_hint | ||
| ) |
Definition at line 42 of file node_texture_util.c.
References bNodeTree::idname, ntree, and STREQ.
Referenced by register_node_type_tex_group(), and tex_node_type_base().
| void tex_node_type_base | ( | struct bNodeType * | ntype, |
| int | type, | ||
| const char * | name, | ||
| short | nclass, | ||
| short | flag | ||
| ) |
Definition at line 53 of file node_texture_util.c.
References bNodeType::insert_link, node_insert_link_default(), node_type_base(), node_update_internal_links_default(), bNodeType::poll, tex_node_poll_default(), type, and bNodeType::update_internal_links.
Referenced by register_node_type_tex_at(), register_node_type_tex_bricks(), register_node_type_tex_checker(), register_node_type_tex_compose(), register_node_type_tex_coord(), register_node_type_tex_curve_rgb(), register_node_type_tex_curve_time(), register_node_type_tex_decompose(), register_node_type_tex_distance(), register_node_type_tex_hue_sat(), register_node_type_tex_image(), register_node_type_tex_invert(), register_node_type_tex_math(), register_node_type_tex_mix_rgb(), register_node_type_tex_output(), register_node_type_tex_rgbtobw(), register_node_type_tex_rotate(), register_node_type_tex_scale(), register_node_type_tex_texture(), register_node_type_tex_translate(), register_node_type_tex_valtonor(), register_node_type_tex_valtorgb(), and register_node_type_tex_viewer().
| void tex_output | ( | bNode * | node, |
| bNodeExecData * | execdata, | ||
| bNodeStack ** | in, | ||
| bNodeStack * | out, | ||
| TexFn | texfn, | ||
| TexCallData * | cdata | ||
| ) |
Definition at line 140 of file node_texture_util.c.
References TexDelegate::cdata, bNodeStack::data, TexDelegate::fn, TexDelegate::in, MAX_SOCKET, MEM_mallocN, node, TexDelegate::node, NODE_MUTED, bNodeExecData::preview, TexDelegate::preview, bNodeStack::sockettype, texfn(), and TexDelegate::type.
Referenced by exec(), rgb_exec(), rgbtobw_exec(), time_exec(), and valtorgb_exec().