CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

iMaterialHandle Struct Reference
[3D]

This class represents a material handle (compiled material) for the 3D rasterizer. More...

#include <ivideo/material.h>

Inheritance diagram for iMaterialHandle:

iBase csMaterialHandle List of all members.

Public Member Functions

virtual iShaderGetShader (csStringID type)=0
 Get shader associated with a shader type.
virtual iTextureHandleGetTexture ()=0
 Get a texture from the material.
virtual void GetFlatColor (csRGBpixel &oColor)=0
 Get the flat color.
virtual void GetReflection (float &oDiffuse, float &oAmbient, float &oReflection)=0
 Get light reflection parameters for this material.

Detailed Description

This class represents a material handle (compiled material) for the 3D rasterizer.

Main creators of instances implementing this interface:

Main ways to get pointers to this interface: Main users of this interface:

Definition at line 188 of file material.h.


Member Function Documentation

virtual void iMaterialHandle::GetFlatColor csRGBpixel oColor  )  [pure virtual]
 

Get the flat color.

If the material has a texture assigned, this will return the mean texture color.

Implemented in csMaterialHandle.

virtual void iMaterialHandle::GetReflection float &  oDiffuse,
float &  oAmbient,
float &  oReflection
[pure virtual]
 

Get light reflection parameters for this material.

Implemented in csMaterialHandle.

virtual iShader* iMaterialHandle::GetShader csStringID  type  )  [pure virtual]
 

Get shader associated with a shader type.

Implemented in csMaterialHandle.

virtual iTextureHandle* iMaterialHandle::GetTexture  )  [pure virtual]
 

Get a texture from the material.

Implemented in csMaterialHandle.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1