#include <material.h>
Inheritance diagram for csMaterial:
Public Methods | |
csMaterial () | |
create an empty material. | |
csMaterial (iTextureWrapper *txt) | |
create a material with only the texture given. | |
virtual | ~csMaterial () |
destroy material. | |
csRGBcolor& | GetFlatColor () |
Get the flat shading color. | |
float | GetDiffuse () const |
Get diffuse reflection constant for the material. | |
void | SetDiffuse (float val) |
Set diffuse reflection constant for the material. | |
float | GetAmbient () const |
Get ambient lighting for the material. | |
void | SetAmbient (float val) |
Set ambient lighting for the material. | |
float | GetReflection () const |
Get reflection of the material. | |
void | SetReflection (float val) |
Set reflection of the material. | |
iTextureWrapper* | GetTextureWrapper () const |
Get the texture (if none NULL is returned). | |
void | SetTextureWrapper (iTextureWrapper *tex) |
Set the texture (pass NULL to set no texture). | |
void | AddTextureLayer (iTextureWrapper *txtwrap, UInt mode, float uscale, float vscale, float ushift, float vshift) |
Add a texture layer (currently only one supported). | |
virtual iTextureHandle* | GetTexture () |
Get texture. | |
virtual int | GetTextureLayerCount () |
Get num texture layers. | |
virtual csTextureLayer* | GetTextureLayer (int idx) |
Get a texture layer. | |
virtual void | GetFlatColor (csRGBpixel &oColor) |
Get flat color. | |
virtual void | SetFlatColor (const csRGBcolor &col) |
Set the flat shading color. | |
virtual void | GetReflection (float &oDiffuse, float &oAmbient, float &oReflection) |
Get reflection values (diffuse, ambient, reflection). | |
virtual void | SetReflection (float oDiffuse, float oAmbient, float oReflection) |
Set reflection values (diffuse, ambient, reflection). | |
Public Attributes | |
SCF_DECLARE_IBASE |