24 INLINE FltPackedColor::
38 return LColor(_r / 255.0, _g / 255.0, _b / 255.0, _a / 255.0);
47 return LRGBColor(_r / 255.0, _g / 255.0, _b / 255.0);
56 _r = (int)floor(color[0] * 255.0);
57 _g = (int)floor(color[1] * 255.0);
58 _b = (int)floor(color[2] * 255.0);
59 _a = (int)floor(color[3] * 255.0);
68 _r = (int)floor(color[0] * 255.0);
69 _g = (int)floor(color[1] * 255.0);
70 _b = (int)floor(color[2] * 255.0);
void set_rgb(const LRGBColor &rgb)
Sets the color according to the indicated three-component LRGBColor value, and set the alpha to 1....
LRGBColor get_rgb() const
Returns the three-component color as an LRGBColor (ignoring the alpha component), where each componen...
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,...