Blender V5.3
blender::nodes::node_composite_set_alpha_cc Namespace Reference

Typedefs

using Color

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_init (bNodeTree *, bNode *node)
static int node_gpu_material (GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static float4 set_alpha (const float4 &color, const float alpha, const MenuValue &type)
static void node_build_multi_function (nodes::NodeMultiFunctionBuilder &builder)
static void node_register ()

Variables

static const EnumPropertyItem type_items []

Typedef Documentation

◆ Color

Definition at line 96 of file COM_result.hh.

Function Documentation

◆ node_build_multi_function()

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

◆ node_declare()

void blender::nodes::node_composite_set_alpha_cc::node_declare ( NodeDeclarationBuilder & b)
static

◆ node_gpu_material()

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

Definition at line 57 of file node_composite_set_alpha.cc.

References blender::GPU_stack_link(), node, and node_gpu_material().

Referenced by node_gpu_material(), and node_register().

◆ node_init()

void blender::nodes::node_composite_set_alpha_cc::node_init ( bNodeTree * ,
bNode * node )
static

Definition at line 48 of file node_composite_set_alpha.cc.

References node, and node_init().

Referenced by node_init(), and node_register().

◆ node_register()

◆ set_alpha()

float4 blender::nodes::node_composite_set_alpha_cc::set_alpha ( const float4 & color,
const float alpha,
const MenuValue & type )
static

Variable Documentation

◆ type_items

const EnumPropertyItem blender::nodes::node_composite_set_alpha_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 19 of file node_composite_set_alpha.cc.

Referenced by node_declare().