41 F_normal_frozen = 0x4000,
43 F_packed_color = 0x1000
46 int _color_name_index;
60 INLINE
void set_color(
const LColor &color);
62 void set_rgb(
const LRGBColor &rgb);
71 return get_class_type();
73 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
77 static void init_type() {
78 FltRecord::init_type();
80 FltRecord::get_class_type());
A packed color record, A, B, G, R.
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
The base class for all kinds of records in a MultiGen OpenFlight file.
Represents a single vertex in the vertex palette.
int get_record_length() const
Returns the length of this record in bytes as it will be written to the flt file.
LColor get_color() const
If has_color() indicates true, returns the color of the vertex, as a four- component value.
void set_color(const LColor &color)
Sets the color of the vertex, using the packed color convention.
LRGBColor get_rgb() const
If has_color() indicates true, returns the color of the vertex, as a three- component value.
FltOpcode get_opcode() const
Returns the opcode that this record will be written as.
void set_rgb(const LRGBColor &rgb)
Sets the color of the vertex, using the packed color convention.
bool has_color() const
Returns true if the vertex has a primary color indicated, false otherwise.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...