17INLINE ColorBlendAttrib::
25 _color(LColor::zero()),
26 _involves_constant_color(false),
27 _involves_color_scale(false)
34INLINE ColorBlendAttrib::
35ColorBlendAttrib(ColorBlendAttrib::Mode mode,
36 ColorBlendAttrib::Operand a, ColorBlendAttrib::Operand b,
37 ColorBlendAttrib::Mode alpha_mode,
38 ColorBlendAttrib::Operand alpha_a, ColorBlendAttrib::Operand alpha_b,
39 const LColor &color) :
43 _alpha_mode(alpha_mode),
47 _involves_constant_color(involves_constant_color(a) ||
48 involves_constant_color(b) ||
49 involves_constant_color(alpha_a) ||
50 involves_constant_color(alpha_b)),
51 _involves_color_scale(involves_color_scale(a) ||
52 involves_color_scale(b) ||
53 involves_color_scale(alpha_a) ||
54 involves_color_scale(alpha_b))
119 return _involves_constant_color;
128 return _involves_color_scale;
138 case O_constant_color:
139 case O_one_minus_constant_color:
140 case O_constant_alpha:
141 case O_one_minus_constant_alpha:
155 return (operand >= O_color_scale);
get_operand_a
Returns the RGB multiplier for the first component.
get_alpha_operand_b
Returns the alpha multiplier for the second component.
bool involves_color_scale() const
Returns true if the this attrib uses the color scale attrib, false otherwise.
get_alpha_mode
Returns the blending mode for the alpha channel.
get_color
Returns the constant color associated with the attrib.
bool involves_constant_color() const
Returns true if the this attrib uses the constant color, false otherwise.
get_operand_b
Returns the RGB multiplier for the second component.
get_mode
Returns the blending mode for the RGB channels.
get_alpha_operand_a
Returns the alpha multiplier for the first component.