15 #ifndef FLTPACKEDCOLOR_H 16 #define FLTPACKEDCOLOR_H 18 #include "pandatoolbase.h" 40 void output(ostream &out)
const;
51 INLINE ostream &operator << (ostream &out,
const FltPackedColor &color);
53 #include "fltPackedColor.I" This is the base class for all three-component vectors and points.
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
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.
This is the base class for all three-component vectors and points.
LColor get_color() const
Returns the four-component color as a LColor, where each component is in the range [0...