![]() |
Public API Reference |
#include <material.h>
Inheritance diagram for iMaterialWrapper:
Public Methods | |
virtual csMaterialWrapper * | GetPrivateObject ()=0 |
@Ugly. More... | |
virtual iObject * | QueryObject ()=0 |
Get the iObject for this material. More... | |
virtual iMaterialWrapper * | Clone () const=0 |
Create a clone this material wrapper, using the same material handle. More... | |
virtual void | SetMaterialHandle (iMaterialHandle *mat)=0 |
Change the material handle. More... | |
virtual iMaterialHandle * | GetMaterialHandle ()=0 |
Get the material handle. More... | |
virtual void | SetMaterial (iMaterial *material)=0 |
Change the base material. More... | |
virtual iMaterial * | GetMaterial ()=0 |
Get the original material. More... | |
virtual void | Register (iTextureManager *txtmng)=0 |
Register the material with the texture manager. More... | |
virtual void | Visit ()=0 |
Visit this material. More... |
Every material in the engine is represented by a material wrapper, which keeps the pointer to the material handle, its name, and possibly the base material object that was registered to create the material handle.
Definition at line 46 of file iengine/material.h.
|
Create a clone this material wrapper, using the same material handle.
|
|
Get the original material.
|
|
Get the material handle.
|
|
@Ugly. @ |
|
Get the iObject for this material.
|
|
Register the material with the texture manager.
|
|
Change the base material. Note: The changes will not be visible until you re-register the material. |
|
Change the material handle. Note: This will also change the base material to NULL. |
|
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. |