27 INLINE FltPackedColor::
43 return LColor(_r / 255.0, _g / 255.0, _b / 255.0, _a / 255.0);
55 return LRGBColor(_r / 255.0, _g / 255.0, _b / 255.0);
66 _r = (int)floor(color[0] * 255.0);
67 _g = (int)floor(color[1] * 255.0);
68 _b = (int)floor(color[2] * 255.0);
69 _a = (int)floor(color[3] * 255.0);
81 _r = (int)floor(color[0] * 255.0);
82 _g = (int)floor(color[1] * 255.0);
83 _b = (int)floor(color[2] * 255.0);
This is the base class for all three-component vectors and points.
LRGBColor get_rgb() const
Returns the three-component color as an LRGBColor (ignoring the alpha component), where each componen...
void set_rgb(const LRGBColor &rgb)
Sets the color according to the indicated three-component LRGBColor value, and set the alpha to 1...
void set_color(const LColor &color)
Sets the color according to the indicated four-component LColor value (including alpha).
A packed color record, A, B, G, R.
LColor get_color() const
Returns the four-component color as a LColor, where each component is in the range [0...
This is the base class for all three-component vectors and points.