38 DT_solid_cull_backface = 0,
41 DT_wireframe_close = 3,
42 DT_wireframe_highlight = 4,
56 F_terrain = 0x80000000,
57 F_no_color = 0x40000000,
58 F_no_alt_color = 0x20000000,
59 F_packed_color = 0x10000000,
60 F_terrain_footprint = 0x08000000,
65 LM_face_no_normal = 0,
66 LM_vertex_no_normal = 1,
67 LM_face_with_normal = 2,
68 LM_vertex_with_normal = 3
72 int _relative_priority;
75 int _color_name_index;
76 int _alt_color_name_index;
77 BillboardType _billboard_type;
78 int _detail_texture_index;
81 int _dfad_material_code;
83 int _ir_material_code;
85 int _lod_generation_control;
86 int _line_style_index;
88 LightMode _light_mode;
91 int _texture_mapping_index;
108 void set_rgb(
const LRGBColor &rgb);
121 return get_class_type();
123 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
127 static void init_type() {
128 FltBeadID::init_type();
130 FltBeadID::get_class_type());
A base class for any of a broad family of flt beads that include an ID.
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.
bool has_material() const
Returns true if the face has a material applied, false otherwise.
bool has_alt_color() const
Returns true if the face has an alternate color indicated, false otherwise.
LRGBColor get_alt_rgb() const
If has_alt_color() indicates true, returns the alternate color of the face, as a three-component valu...
LColor get_color() const
Returns the primary color of the face, as a four-component value (including alpha as the transparency...
LColor get_alt_color() const
If has_alt_color() indicates true, returns the alternate color of the face, as a four-component value...
void set_material(FltMaterial *material)
Applies the indicated material to this face, or if the material is NULL, clears it.
void set_color(const LColor &color)
Sets the primary color of the face, using the packed color convention.
FltTexture * get_texture() const
Returns the texture applied to this face, or NULL if no texture was applied.
LRGBColor get_rgb() const
Returns the primary color of the face, as a three-component value ignoring transparency.
void set_texture(FltTexture *texture)
Applies the indicated texture to this face, or if the texture is NULL, clears it.
void set_rgb(const LRGBColor &rgb)
Sets the primary color of the face, using the packed color convention; does not affect transparency.
bool has_color() const
Returns true if the face has a primary color indicated, false otherwise.
FltMaterial * get_material() const
Returns the material applied to this face, or NULL if no material was applied.
Represents a single material in the material palette.
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.
Represents a single texture in the texture palette.
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(),...