Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iMaterialHandle Struct Reference

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 iTextureHandleGetTexture ()=0
 Get a texture from the material.

virtual void GetFlatColor (csRGBpixel &oColor)=0
 Get the flat color. More...

virtual void GetReflection (float &oDiffuse, float &oAmbient, float &oReflection)=0
 Get light reflection parameters for this material.

virtual void Prepare ()=0
 Prepare this material. More...


Detailed Description

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


Member Function Documentation

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.

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.5 written by Dimitri van Heesch, ©1997-2000