14 #ifndef XFILEMATERIAL_H
15 #define XFILEMATERIAL_H
50 LRGBColor _specular_color;
51 LRGBColor _emissive_color;
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
The name of a file, such as a texture file or an Egg file.
This is an abstract base class for an XFileNode which is also an XFileDataObject.
This represents an X file "material", which consists of a color, lighting, and/or texture specificati...
bool has_texture() const
Returns true if this material includes a texture map, false otherwise.
XFileDataNode * make_x_material(XFileNode *x_meshMaterials, const std::string &suffix)
Creates a Material object for the material list.
void apply_to_egg(EggPrimitive *egg_prim, XFileToEggConverter *converter)
Applies the properties in the material to the indicated egg primitive.
bool fill_material(XFileDataNode *obj)
Fills the structure based on the raw data from the X file's Material object.
bool has_material() const
Returns true if this material represents something meaningful, or false if the default material is su...
void set_from_egg(EggPrimitive *egg_prim)
Sets the structure up from the indicated egg data.
A single node of an X file.
An STL function object class, this is intended to be used on any ordered collection of class objects ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.