18 #include "pandatoolbase.h"
20 #include "fltRecord.h"
21 #include "fltPackedColor.h"
44 F_normal_frozen = 0x4000,
46 F_packed_color = 0x1000
49 int _color_name_index;
74 return get_class_type();
76 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
80 static void init_type() {
81 FltRecord::init_type();
82 register_type(_type_handle,
"FltVertex",
83 FltRecord::get_class_type());
92 #include "fltVertex.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_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...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
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.
int get_record_length() const
Returns the length of this record in bytes as it will be written to the flt file. ...
This is the base class for all three-component vectors and points.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool has_color() const
Returns true if the vertex has a primary color indicated, false otherwise.
LColor get_color() const
If has_color() indicates true, returns the color of the vertex, as a four-component value...
This is a two-component point in space.
TypeHandle is the identifier used to differentiate C++ class types.
FltOpcode get_opcode() const
Returns the opcode that this record will be written as.