Blender V5.0
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
8#include "UI_resources.hh"
9
11
13{
14 b.add_output<decl::Vector>("UV");
15}
16
18{
19 layout->prop(ptr, "use_tips", UI_ITEM_R_SPLIT_EMPTY_NAME, std::nullopt, 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, "ShaderNodeUVAlongStroke", SH_NODE_UVALONGSTROKE);
32 ntype.ui_name = "UV Along Stroke";
33 ntype.ui_description = "UV coordinates that map a texture along the stroke length";
34 ntype.enum_name_legacy = "UVALONGSTROKE";
36 ntype.declare = file_ns::node_declare;
38 ntype.draw_buttons = file_ns::node_shader_buts_uvalongstroke;
39
41}
#define NODE_CLASS_INPUT
Definition BKE_node.hh:447
#define SH_NODE_UVALONGSTROKE
@ UI_ITEM_R_SPLIT_EMPTY_NAME
void node_register_type(bNodeType &ntype)
Definition node.cc:2416
static void node_shader_buts_uvalongstroke(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_declare(NodeDeclarationBuilder &b)
bool line_style_shader_nodes_poll(const bContext *C)
void sh_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void register_node_type_sh_uvalongstroke()
Defines a node type.
Definition BKE_node.hh:238
std::string ui_description
Definition BKE_node.hh:244
bool(* add_ui_poll)(const bContext *C)
Definition BKE_node.hh:310
const char * enum_name_legacy
Definition BKE_node.hh:247
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
Definition BKE_node.hh:259
NodeDeclareFunction declare
Definition BKE_node.hh:362
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)
PointerRNA * ptr
Definition wm_files.cc:4238