CrystalSpace

Public API Reference

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

iMaterialHandle Struct Reference
[3D]

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

#include <material.h>

Inheritance diagram for iMaterialHandle:

iBase List of all members.

Public Methods

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.

virtual void Prepare ()=0
 Prepare this material.


Detailed Description

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

Definition at line 157 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.

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

Get light reflection parameters for this material.

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

Get shader associated with a shader type.

virtual iTextureHandle* iMaterialHandle::GetTexture   [pure virtual]
 

Get a texture from the material.

virtual void iMaterialHandle::Prepare   [pure virtual]
 

Prepare this material.

The material wrapper (remembered during RegisterMaterial()) is queried again for material parameters and a new material descriptor (internal to the texture manager) is associated with given material handle.


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