24 return (_texture_index >= 0 && _header->has_texture(_texture_index));
35 return _header->get_texture(_texture_index);
49 _header->add_texture(texture);
50 _texture_index = texture->_pattern_index;
62 return (_material_index >= 0 && _header->has_material(_material_index));
73 return _header->get_material(_material_index);
87 _header->add_material(material);
88 _material_index = material->_material_index;
104 return ((_flags & F_no_color) == 0 &&
105 (_color_index != -1 || ((_flags & F_packed_color) != 0)))
bool has_material() const
Returns true if the face has a material applied, false otherwise.
Represents a single material in the material palette.
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.
FltMaterial * get_material() const
Returns the material applied to this face, or NULL if no material was applied.
bool has_color() const
Returns true if the face has a primary color indicated, false otherwise.
void set_texture(FltTexture *texture)
Applies the indicated texture to this face, or if the texture is NULL, clears it. ...