Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
csMaterialHandle Class Reference
This class is the top-level representation of a material. More...
#include <csplugincommon/render3d/txtmgr.h>
Inheritance diagram for csMaterialHandle:

Public Member Functions | |
void | FreeMaterial () |
Release the original material (iMaterial). | |
iMaterial * | GetMaterial () |
Get the material. | |
virtual iShader * | GetShader (csStringID type) |
Get shader associated with a shader type. | |
virtual iTextureHandle * | GetTexture () |
Get a texture from the material. | |
virtual void | GetFlatColor (csRGBpixel &oColor) |
Get the flat color. | |
virtual void | GetReflection (float &oDiffuse, float &oAmbient, float &oReflection) |
Get light reflection parameters for this material. | |
Protected Attributes | |
csRef< iMaterial > | material |
Original material. | |
csRef< csTextureManager > | texman |
Parent texture manager. |
Detailed Description
This class is the top-level representation of a material.
Definition at line 254 of file txtmgr.h.
Member Function Documentation
|
Release the original material (iMaterial).
|
|
Get the flat color. If the material has a texture assigned, this will return the mean texture color. Implements iMaterialHandle. |
|
Get the material.
|
|
Get light reflection parameters for this material.
Implements iMaterialHandle. |
|
Get shader associated with a shader type.
Implements iMaterialHandle. |
|
Get a texture from the material.
Implements iMaterialHandle. |
Member Data Documentation
|
Original material.
|
|
Parent texture manager.
|
The documentation for this class was generated from the following file:
- csplugincommon/render3d/txtmgr.h
Generated for Crystal Space by doxygen 1.3.9.1