22 INLINE ColorScaleAttrib::
25 _has_scale(copy._has_scale),
26 _has_rgb_scale(copy._has_rgb_scale),
27 _has_alpha_scale(copy._has_alpha_scale),
55 return !_off && !_has_scale;
79 return _has_rgb_scale;
91 return _has_alpha_scale;
bool is_identity() const
Returns true if the ColorScaleAttrib is an identity attrib, false if it is either an off attrib or it...
bool has_scale() const
Returns true if the ColorScaleAttrib has a non-identity scale, false otherwise (in which case it migh...
const LVecBase4 & get_scale() const
Returns the scale to be applied to colors.
Applies a scale to colors in the scene graph and on vertices.
This is the base class for all three-component vectors and points.
bool has_alpha_scale() const
Returns true if the ColorScaleAttrib has a non-identity scale in the alpha component (ignoring RGB)...
bool is_off() const
Returns true if the ColorScaleAttrib will ignore any color scales inherited from above, false otherwise.
bool has_rgb_scale() const
Returns true if the ColorScaleAttrib has a non-identity scale in the RGB components (ignoring alpha)...