iMaterial Struct Reference
[3D, 3D]
This class represents a material as seen from the engine view.
More...
#include <ivideo/material.h>
Inheritance diagram for iMaterial:

Public Member Functions | |
virtual void | GetFlatColor (csRGBpixel &oColor, bool useTextureMean=true)=0 |
Get the flat color. | |
virtual void | GetReflection (float &oDiffuse, float &oAmbient, float &oReflection)=0 |
Get light reflection parameters for this material. | |
virtual iShader * | GetShader (csStringID type)=0 |
Get shader associated with a shader type. | |
virtual const csHash< csRef< iShader >, csStringID > & | GetShaders () const =0 |
Get all Shaders. | |
virtual iTextureHandle * | GetTexture (csStringID name)=0 |
Get a texture from the material. | |
virtual iTextureHandle * | GetTexture ()=0 |
Get the base texture from the material. | |
virtual void | SetFlatColor (const csRGBcolor &col)=0 |
Set the flat shading color. | |
virtual void | SetReflection (float oDiffuse, float oAmbient, float oReflection)=0 |
Set the reflection parameters. | |
virtual void | SetShader (csStringID type, iShader *shader)=0 |
Associate a shader with a shader type. |
Detailed Description
This class represents a material as seen from the engine view.Because it is also a shader variable context it can be used directly for rendering.
Main creators of instances implementing this interface:
Main ways to get pointers to this interface:
Main users of this interface:
- 3D renderer implementations (iGraphics3D).
Definition at line 72 of file material.h.
Member Function Documentation
|
Get the flat color. If the material has a texture assigned, this will return the mean texture color.
|
|
Get light reflection parameters for this material.
|
|
Get shader associated with a shader type.
|
|
Get all Shaders.
|
|
Get a texture from the material.
|
|
Get the base texture from the material.
|
|
Set the flat shading color.
|
|
Set the reflection parameters.
|
|
Associate a shader with a shader type.
|
The documentation for this struct was generated from the following file:
- ivideo/material.h
Generated for Crystal Space by doxygen 1.4.6