#include <material.h>
Inheritance diagram for iMaterial:

Public Methods | |
| virtual iTextureHandle* | GetTexture ()=0 |
| Get the base texture from the material. | |
| virtual int | GetTextureLayerCount ()=0 |
| Get the number of texture layers. More... | |
| virtual csTextureLayer* | GetTextureLayer (int idx)=0 |
| Get a texture layer. | |
| virtual void | GetFlatColor (csRGBpixel &oColor)=0 |
| Get the flat color. More... | |
| virtual void | SetFlatColor (const csRGBcolor &col)=0 |
| Set the flat shading color. | |
| virtual void | GetReflection (float &oDiffuse, float &oAmbient, float &oReflection)=0 |
| Get light reflection parameters for this material. | |
| virtual void | SetReflection (float oDiffuse, float oAmbient, float oReflection)=0 |
| Set the reflection parameters. | |
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.
|
|
Get the flat color. If the material has a texture assigned, this will return the mean texture color. Reimplemented in csMaterial. |
|
|
Get the number of texture layers. The base texture is not counted in this. Reimplemented in csMaterial. |