17 INLINE ColorBlendAttrib::
25 _color(LColor::zero()),
26 _involves_constant_color(false),
27 _involves_color_scale(false)
34 INLINE ColorBlendAttrib::
35 ColorBlendAttrib(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))
61 INLINE ColorBlendAttrib::Mode ColorBlendAttrib::
69 INLINE ColorBlendAttrib::Operand ColorBlendAttrib::
70 get_operand_a()
const {
77 INLINE ColorBlendAttrib::Operand ColorBlendAttrib::
78 get_operand_b()
const {
85 INLINE ColorBlendAttrib::Mode ColorBlendAttrib::
86 get_alpha_mode()
const {
93 INLINE ColorBlendAttrib::Operand ColorBlendAttrib::
94 get_alpha_operand_a()
const {
101 INLINE ColorBlendAttrib::Operand ColorBlendAttrib::
102 get_alpha_operand_b()
const {
109 INLINE LColor ColorBlendAttrib::
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);
bool involves_color_scale() const
Returns true if the this attrib uses the color scale attrib, false otherwise.
bool involves_constant_color() const
Returns true if the this attrib uses the constant color, false otherwise.