CrystalSpace

Public API Reference

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:

iMaterialHandle iBase List of all members.

Public Member Functions

void FreeMaterial ()
 Release the original material (iMaterial).
iMaterialGetMaterial ()
 Get the material.
virtual iShaderGetShader (csStringID type)
 Get shader associated with a shader type.
virtual iTextureHandleGetTexture ()
 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< iMaterialmaterial
 Original material.
csRef< csTextureManagertexman
 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

void csMaterialHandle::FreeMaterial  ) 
 

Release the original material (iMaterial).

virtual void csMaterialHandle::GetFlatColor csRGBpixel oColor  )  [inline, virtual]
 

Get the flat color.

If the material has a texture assigned, this will return the mean texture color.

Implements iMaterialHandle.

Definition at line 294 of file txtmgr.h.

iMaterial* csMaterialHandle::GetMaterial  )  [inline]
 

Get the material.

Definition at line 274 of file txtmgr.h.

virtual void csMaterialHandle::GetReflection float &  oDiffuse,
float &  oAmbient,
float &  oReflection
[inline, virtual]
 

Get light reflection parameters for this material.

Implements iMaterialHandle.

Definition at line 302 of file txtmgr.h.

virtual iShader* csMaterialHandle::GetShader csStringID  type  )  [inline, virtual]
 

Get shader associated with a shader type.

Implements iMaterialHandle.

Definition at line 282 of file txtmgr.h.

virtual iTextureHandle* csMaterialHandle::GetTexture  )  [virtual]
 

Get a texture from the material.

Implements iMaterialHandle.


Member Data Documentation

csRef<iMaterial> csMaterialHandle::material [protected]
 

Original material.

Definition at line 258 of file txtmgr.h.

csRef<csTextureManager> csMaterialHandle::texman [protected]
 

Parent texture manager.

Definition at line 260 of file txtmgr.h.


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