CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iModelDataMaterial Struct Reference

This structure contains the information about a material for an imported model. More...

#include <mdldata.h>

Inheritance diagram for iModelDataMaterial:

iBase csModelDataMaterial List of all members.

Public Methods

virtual iObjectQueryObject ()=0
 Query the iObject for this material. More...

virtual iMaterialGetBaseMaterial () const=0
 Return the base material. More...

virtual void SetBaseMaterial (iMaterial *mat)=0
 Set the base material. More...

virtual iMaterialWrapperGetMaterialWrapper () const=0
 Return the material wrapper. More...

virtual void SetMaterialWrapper (iMaterialWrapper *mat)=0
 Set the base material. More...

virtual void Register (iMaterialList *ml)=0
 Create a material wrapper from the given material list. More...

virtual iModelDataMaterial * Clone () const=0
 Clone this texture object. More...


Detailed Description

This structure contains the information about a material for an imported model.

This information can be stored in two different way: Either as a base iMaterial, or as a material wrapper. Conversion between the two is usually possible, but does not happen automatically.

Whatever you use the model data for determines which representation is used. As an example, exporting to a model file uses the base material. Exporting to a mesh object uses the material wrapper.

Definition at line 107 of file imesh/mdldata.h.


Member Function Documentation

virtual iModelDataMaterial* iModelDataMaterial::Clone   const [pure virtual]
 

Clone this texture object.

Note: The underlying material will not be cloned!

Implemented in csModelDataMaterial.

virtual iMaterial* iModelDataMaterial::GetBaseMaterial   const [pure virtual]
 

Return the base material.

virtual iMaterialWrapper* iModelDataMaterial::GetMaterialWrapper   const [pure virtual]
 

Return the material wrapper.

virtual iObject* iModelDataMaterial::QueryObject   [pure virtual]
 

Query the iObject for this material.

virtual void iModelDataMaterial::Register iMaterialList   ml [pure virtual]
 

Create a material wrapper from the given material list.

Requires that the base material exists.

Implemented in csModelDataMaterial.

virtual void iModelDataMaterial::SetBaseMaterial iMaterial   mat [pure virtual]
 

Set the base material.

virtual void iModelDataMaterial::SetMaterialWrapper iMaterialWrapper   mat [pure virtual]
 

Set the base material.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14