22 INLINE ColorBlendAttrib::
28 _involves_constant_color(false),
29 _involves_color_scale(false)
39 INLINE ColorBlendAttrib::
40 ColorBlendAttrib(ColorBlendAttrib::Mode mode,
41 ColorBlendAttrib::Operand a, ColorBlendAttrib::Operand b,
47 _involves_constant_color(involves_constant_color(a) || involves_constant_color(b)),
48 _involves_color_scale(involves_color_scale(a) || involves_color_scale(b))
100 return _involves_constant_color;
111 return _involves_color_scale;
123 case O_constant_color:
124 case O_one_minus_constant_color:
125 case O_constant_alpha:
126 case O_one_minus_constant_alpha:
144 case O_one_minus_color_scale:
146 case O_one_minus_alpha_scale:
Mode get_mode() const
Returns the colorBlend mode.
bool involves_constant_color() const
Returns true if the this attrib uses the constant color, false otherwise.
LColor get_color() const
Returns the constant color associated with the attrib.
This is the base class for all three-component vectors and points.
Operand get_operand_b() const
Returns the multiplier for the second component.
bool involves_color_scale() const
Returns true if the this attrib uses the color scale attrib, false otherwise.
Operand get_operand_a() const
Returns the multiplier for the first component.