Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csMaterialWrapper Class Reference

csMaterialWrapper represents a texture and its link to the iMaterialHandle as returned by iTextureManager. More...

#include <material.h>

Inheritance diagram for csMaterialWrapper:

csObject iObject iBase List of all members.

Public Methods

 csMaterialWrapper (iMaterial *Image)
 Construct a material handle given a material.

 csMaterialWrapper (iMaterialHandle *ith)
 Construct a csMaterialWrapper from a pre-registered material handle.

 csMaterialWrapper (csMaterialWrapper &)
 Copy constructor.

void SetMaterialHandle (iMaterialHandle *mat)
 Change the material handle. More...

iMaterialHandleGetMaterialHandle ()
 Get the material handle.

void SetMaterial (iMaterial *material)
 Change the base material. More...

iMaterialGetMaterial ()
 Get the original material.

void Register (iTextureManager *txtmng)
 Register the material with the texture manager.

void Visit ()
 Visit this material. More...

 SCF_DECLARE_IBASE_EXT (csObject)

Public Attributes

csMaterialWrapper::MaterialWrapper  scfiMaterialWrapper

Friends

class  MaterialWrapper

Detailed Description

csMaterialWrapper represents a texture and its link to the iMaterialHandle as returned by iTextureManager.


Member Function Documentation

void csMaterialWrapper::SetMaterial ( iMaterial * material )
 

Change the base material.

Note: The changes will not be visible until you re-register the material.

void csMaterialWrapper::SetMaterialHandle ( iMaterialHandle * mat )
 

Change the material handle.

Note: This will also change the base material to NULL.

void csMaterialWrapper::Visit ( )
 

Visit this material.

This should be called by the engine right before using the material. It will call Visit() on all textures that are used.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000