Blender V5.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
8
9#include "node_shader_util.hh"
10
12#include "UI_resources.hh"
13
14namespace blender {
15
17
19{
20 b.add_output<decl::Vector>("UV"_ustr);
21}
22
24{
25 layout.prop(ptr, "use_tips", ui::ITEM_R_SPLIT_EMPTY_NAME, std::nullopt, ICON_NONE);
26}
27
28} // namespace nodes::node_shader_uv_along_stroke_cc
29
30/* node type definition */
32{
33 namespace file_ns = nodes::node_shader_uv_along_stroke_cc;
34
35 static bke::bNodeType ntype;
36
37 sh_node_type_base(&ntype, "ShaderNodeUVAlongStroke"_ustr, SH_NODE_UVALONGSTROKE);
38 ntype.ui_name = "UV Along Stroke";
39 ntype.ui_description = "UV coordinates that map a texture along the stroke length";
40 ntype.enum_name_legacy = "UVALONGSTROKE";
42 ntype.declare = file_ns::node_declare;
44 ntype.draw_buttons = file_ns::node_shader_buts_uvalongstroke;
45
47}
48
49} // namespace blender
#define NODE_CLASS_INPUT
Definition BKE_node.hh:478
#define SH_NODE_UVALONGSTROKE
void node_register_type(bNodeType &ntype)
Definition node.cc:2920
static void node_declare(NodeDeclarationBuilder &b)
static void node_shader_buts_uvalongstroke(ui::Layout &layout, bContext *, PointerRNA *ptr)
BMesh Iterators.
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
bool line_style_shader_nodes_poll(const bContext *C)
void register_node_type_sh_uvalongstroke()
Defines a node type.
Definition BKE_node.hh:265
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
Definition BKE_node.hh:290
std::string ui_description
Definition BKE_node.hh:271
const char * enum_name_legacy
Definition BKE_node.hh:274
NodeDeclareFunction declare
Definition BKE_node.hh:393
bool(*) add_ui_poll(const bContext *C)
Definition BKE_node.hh:341
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)