Blender V5.0
blender::nodes::node_composite_setalpha_cc Namespace Reference

Functions

static void cmp_node_setalpha_declare (NodeDeclarationBuilder &b)
static void node_composit_init_setalpha (bNodeTree *, bNode *node)
static int node_gpu_material (GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static void node_build_multi_function (blender::nodes::NodeMultiFunctionBuilder &builder)

Variables

static const EnumPropertyItem type_items []

Function Documentation

◆ cmp_node_setalpha_declare()

void blender::nodes::node_composite_setalpha_cc::cmp_node_setalpha_declare ( NodeDeclarationBuilder & b)
static

◆ node_build_multi_function()

void blender::nodes::node_composite_setalpha_cc::node_build_multi_function ( blender::nodes::NodeMultiFunctionBuilder & builder)
static

◆ node_composit_init_setalpha()

void blender::nodes::node_composite_setalpha_cc::node_composit_init_setalpha ( bNodeTree * ,
bNode * node )
static

Definition at line 50 of file node_composite_setalpha.cc.

References MEM_callocN(), and bNode::storage.

◆ node_gpu_material()

int blender::nodes::node_composite_setalpha_cc::node_gpu_material ( GPUMaterial * material,
bNode * node,
bNodeExecData * ,
GPUNodeStack * inputs,
GPUNodeStack * outputs )
static

Definition at line 59 of file node_composite_setalpha.cc.

References GPU_stack_link(), inputs, and outputs.

Variable Documentation

◆ type_items

const EnumPropertyItem blender::nodes::node_composite_setalpha_cc::type_items[]
static
Initial value:
= {
"APPLY",
0,
N_("Apply Mask"),
N_("Multiply the input image's RGBA channels by the alpha input value")},
"REPLACE_ALPHA",
0,
N_("Replace Alpha"),
N_("Replace the input image's alpha channel by the alpha input value")},
{0, nullptr, 0, nullptr, nullptr},
}
@ CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA
@ CMP_NODE_SETALPHA_MODE_APPLY
#define N_(msgid)

Definition at line 21 of file node_composite_setalpha.cc.

Referenced by cmp_node_setalpha_declare().