![]() |
Public API Reference |
#include <material.h>
Inheritance diagram for iMaterial:

Public Methods | |
| virtual void | SetEffect (iEffectDefinition *ed)=0 |
| Set the material's effect. More... | |
| virtual iEffectDefinition * | GetEffect ()=0 |
| Get the effect from the material. More... | |
| virtual iTextureHandle * | GetTexture ()=0 |
| Get the base texture from the material. More... | |
| virtual int | GetTextureLayerCount ()=0 |
| Get the number of texture layers. More... | |
| virtual csTextureLayer * | GetTextureLayer (int idx)=0 |
| Get a texture layer. More... | |
| virtual void | GetFlatColor (csRGBpixel &oColor, bool useTextureMean=1)=0 |
| Get the flat color. More... | |
| virtual void | SetFlatColor (const csRGBcolor &col)=0 |
| Set the flat shading color. More... | |
| virtual void | GetReflection (float &oDiffuse, float &oAmbient, float &oReflection)=0 |
| Get light reflection parameters for this material. More... | |
| virtual void | SetReflection (float oDiffuse, float oAmbient, float oReflection)=0 |
| Set the reflection parameters. More... | |
You need to register this to the texture manager to get a handle to an internal compiled material. This interface plays same role related to iMaterialHandle as iImage plays related to iTextureHandle.
Definition at line 69 of file ivideo/material.h.
|
|
Get the effect from the material.
Implemented in csMaterial. |
|
||||||||||||
|
Get the flat color. If the material has a texture assigned, this will return the mean texture color. Implemented in csMaterial. |
|
||||||||||||||||
|
Get light reflection parameters for this material.
Implemented in csMaterial. |
|
|
Get the base texture from the material.
Implemented in csMaterial. |
|
|
Get a texture layer.
Implemented in csMaterial. |
|
|
Get the number of texture layers. The base texture is not counted in this. Implemented in csMaterial. |
|
|
Set the material's effect.
Implemented in csMaterial. |
|
|
Set the flat shading color.
Implemented in csMaterial. |
|
||||||||||||||||
|
Set the reflection parameters.
Implemented in csMaterial. |