![]() |
Public API Reference |
#include <material.h>
Inheritance diagram for csMaterialWrapper:
Public Methods | |
csMaterialWrapper (iMaterial *Image) | |
Construct a material handle given a material. More... | |
csMaterialWrapper (iMaterialHandle *ith) | |
Construct a csMaterialWrapper from a pre-registered material handle. More... | |
csMaterialWrapper (csMaterialWrapper &) | |
Copy constructor. More... | |
void | SetMaterialHandle (iMaterialHandle *mat) |
Change the material handle. More... | |
iMaterialHandle * | GetMaterialHandle () |
Get the material handle. More... | |
void | SetMaterial (iMaterial *material) |
Change the base material. More... | |
iMaterial * | GetMaterial () |
Get the original material. More... | |
void | Register (iTextureManager *txtmng) |
Register the material with the texture manager. More... | |
void | Visit () |
Visit this material. More... |
Definition at line 274 of file csengine/material.h.
|
Construct a material handle given a material.
|
|
Construct a csMaterialWrapper from a pre-registered material handle.
|
|
Copy constructor.
|
|
Get the original material.
Definition at line 310 of file csengine/material.h. |
|
Get the material handle.
Definition at line 302 of file csengine/material.h. |
|
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 0. |
|
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. |