Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_image.cc
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
| } // namespace blender::nodes::node_shader_tex_image_cc | } // namespace blender::nodes::node_shader_tex_image_cc | ||||
| void register_node_type_sh_tex_image() | void register_node_type_sh_tex_image() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_tex_image_cc; | namespace file_ns = blender::nodes::node_shader_tex_image_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_TEX_IMAGE, "Image Texture", NODE_CLASS_TEXTURE, 0); | sh_node_type_base(&ntype, SH_NODE_TEX_IMAGE, "Image Texture", NODE_CLASS_TEXTURE); | ||||
| ntype.declare = file_ns::sh_node_tex_image_declare; | ntype.declare = file_ns::sh_node_tex_image_declare; | ||||
| node_type_init(&ntype, file_ns::node_shader_init_tex_image); | node_type_init(&ntype, file_ns::node_shader_init_tex_image); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeTexImage", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeTexImage", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_gpu(&ntype, file_ns::node_shader_gpu_tex_image); | node_type_gpu(&ntype, file_ns::node_shader_gpu_tex_image); | ||||
| ntype.labelfunc = node_image_label; | ntype.labelfunc = node_image_label; | ||||
| node_type_size_preset(&ntype, NODE_SIZE_LARGE); | node_type_size_preset(&ntype, NODE_SIZE_LARGE); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||