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