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());
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
int get_record_length() const
Returns the length of this record in bytes as it will be written to the flt file.
void set_color(const LColor &color)
Sets the color of the vertex, using the packed color convention.
FltOpcode get_opcode() const
Returns the opcode that this record will be written as.
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(),...
LRGBColor get_rgb() const
If has_color() indicates true, returns the color of the vertex, as a three- component value.
bool has_color() const
Returns true if the vertex has a primary color indicated, false otherwise.
void set_rgb(const LRGBColor &rgb)
Sets the color of the vertex, using the packed color convention.
The base class for all kinds of records in a MultiGen OpenFlight file.
A packed color record, A, B, G, R.
Represents a single vertex in the vertex palette.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LColor get_color() const
If has_color() indicates true, returns the color of the vertex, as a four- component value.
TypeHandle is the identifier used to differentiate C++ class types.