Blender V4.3
node_shader_uv_along_stroke.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2005 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "node_shader_util.hh"
6
7#include "UI_interface.hh"
8#include "UI_resources.hh"
9
11
13{
14 b.add_output<decl::Vector>("UV");
15}
16
18{
19 uiItemR(layout, ptr, "use_tips", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
20}
21
22} // namespace blender::nodes::node_shader_uv_along_stroke_cc
23
24/* node type definition */
26{
28
29 static blender::bke::bNodeType ntype;
30
31 sh_node_type_base(&ntype, SH_NODE_UVALONGSTROKE, "UV Along Stroke", NODE_CLASS_INPUT);
32 ntype.declare = file_ns::node_declare;
34 ntype.draw_buttons = file_ns::node_shader_buts_uvalongstroke;
35
37}
#define SH_NODE_UVALONGSTROKE
Definition BKE_node.hh:974
#define NODE_CLASS_INPUT
Definition BKE_node.hh:404
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
Definition node.cc:1708
static void node_shader_buts_uvalongstroke(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_declare(NodeDeclarationBuilder &b)
void sh_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
bool line_style_shader_nodes_poll(const bContext *C)
void register_node_type_sh_uvalongstroke()
Defines a node type.
Definition BKE_node.hh:218
bool(* add_ui_poll)(const bContext *C)
Definition BKE_node.hh:288
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
Definition BKE_node.hh:238
NodeDeclareFunction declare
Definition BKE_node.hh:347
PointerRNA * ptr
Definition wm_files.cc:4126