18 #include "pandatoolbase.h"
20 #include "fltBeadID.h"
21 #include "fltPackedColor.h"
22 #include "fltHeader.h"
41 DT_solid_cull_backface = 0,
44 DT_wireframe_close = 3,
45 DT_wireframe_highlight = 4,
59 F_terrain = 0x80000000,
60 F_no_color = 0x40000000,
61 F_no_alt_color = 0x20000000,
62 F_packed_color = 0x10000000,
63 F_terrain_footprint = 0x08000000,
68 LM_face_no_normal = 0,
69 LM_vertex_no_normal = 1,
70 LM_face_with_normal = 2,
71 LM_vertex_with_normal = 3
75 int _relative_priority;
78 int _color_name_index;
79 int _alt_color_name_index;
80 BillboardType _billboard_type;
81 int _detail_texture_index;
84 int _dfad_material_code;
86 int _ir_material_code;
88 int _lod_generation_control;
89 int _line_style_index;
91 LightMode _light_mode;
94 int _texture_mapping_index;
124 return get_class_type();
126 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
130 static void init_type() {
131 FltBeadID::init_type();
132 register_type(_type_handle,
"FltGeometry",
133 FltBeadID::get_class_type());
140 #include "fltGeometry.I"
LRGBColor get_rgb() const
Returns the primary color of the face, as a three-component value ignoring transparency.
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...
A base class for any of a broad family of flt beads that include an ID.
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
bool has_alt_color() const
Returns true if the face has an alternate color indicated, false otherwise.
bool has_material() const
Returns true if the face has a material applied, false otherwise.
void set_color(const LColor &color)
Sets the primary color of the face, using the packed color convention.
Represents a single material in the material palette.
This is a base class for both FltFace and FltMesh, which are two different kinds of geometric primiti...
bool has_texture() const
Returns true if the face has a texture applied, false otherwise.
void set_material(FltMaterial *material)
Applies the indicated material to this face, or if the material is NULL, clears it.
Represents a single texture in the texture palette.
FltTexture * get_texture() const
Returns the texture applied to this face, or NULL if no texture was applied.
A packed color record, A, B, G, R.
FltMaterial * get_material() const
Returns the material applied to this face, or NULL if no material was applied.
LRGBColor get_alt_rgb() const
If has_alt_color() indicates true, returns the alternate color of the face, as a three-component valu...
bool has_color() const
Returns true if the face has a primary color indicated, false otherwise.
This is the base class for all three-component vectors and points.
LColor get_alt_color() const
If has_alt_color() indicates true, returns the alternate color of the face, as a four-component value...
LColor get_color() const
Returns the primary color of the face, as a four-component value (including alpha as the transparency...
TypeHandle is the identifier used to differentiate C++ class types.
void set_rgb(const LRGBColor &rgb)
Sets the primary color of the face, using the packed color convention; does not affect transparency...
void set_texture(FltTexture *texture)
Applies the indicated texture to this face, or if the texture is NULL, clears it. ...