14 #ifndef FLTPACKEDCOLOR_H 15 #define FLTPACKEDCOLOR_H 34 INLINE LRGBColor
get_rgb()
const;
35 INLINE
void set_color(
const LColor &color);
36 INLINE
void set_rgb(
const LRGBColor &rgb);
38 void output(std::ostream &out)
const;
49 INLINE std::ostream &operator << (std::ostream &out,
const FltPackedColor &color);
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LColor get_color() const
Returns the four-component color as a LColor, where each component is in the range [0,...