A packed color record, A, B, G, R. More...
#include "fltPackedColor.h"
Public Member Functions | |
bool | build_record (FltRecordWriter &writer) const |
bool | extract_record (FltRecordReader &reader) |
LColor | get_color () const |
Returns the four-component color as a LColor, where each component is in the range [0, 1]. More... | |
LRGBColor | get_rgb () const |
Returns the three-component color as an LRGBColor (ignoring the alpha component), where each component is in the range [0, 1]. More... | |
void | output (std::ostream &out) const |
void | set_color (const LColor &color) |
Sets the color according to the indicated four-component LColor value (including alpha). More... | |
void | set_rgb (const LRGBColor &rgb) |
Sets the color according to the indicated three-component LRGBColor value, and set the alpha to 1.0. More... | |
Public Attributes | |
int | _a |
int | _b |
int | _g |
int | _r |
A packed color record, A, B, G, R.
This appears, for instance, within a face bead.
Definition at line 29 of file fltPackedColor.h.
|
inline |
Returns the four-component color as a LColor, where each component is in the range [0, 1].
Definition at line 37 of file fltPackedColor.I.
|
inline |
Returns the three-component color as an LRGBColor (ignoring the alpha component), where each component is in the range [0, 1].
Definition at line 46 of file fltPackedColor.I.
|
inline |
Sets the color according to the indicated four-component LColor value (including alpha).
Definition at line 55 of file fltPackedColor.I.
|
inline |
Sets the color according to the indicated three-component LRGBColor value, and set the alpha to 1.0.
Definition at line 67 of file fltPackedColor.I.
Referenced by FltVertex::set_rgb(), and FltGeometry::set_rgb().