crystalspace.jbind.interfaces.ivideo.material
Interface iMaterialHandle

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csMaterialHandle

public interface iMaterialHandle
extends iBase

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

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/pubapi/structiMaterialHandle.php

Method Summary
 void getFlatColor(csRGBpixel oColor)
          Get the flat color.
 float[] getReflection()
          Get light reflection parameters for this material.
 iShader getShader(int type)
          Get shader associated with a shader type.
 iTextureHandle getTexture()
          Get a texture from the material.
 void prepare()
          Prepare this material.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

getFlatColor

public void getFlatColor(csRGBpixel oColor)
Get the flat color. If the material has a texture assigned, this will return the mean texture color.

Parameters:
oColor -

getReflection

public float[] getReflection()
Get light reflection parameters for this material.

Returns:

getShader

public iShader getShader(int type)
Get shader associated with a shader type.

Parameters:
type -
Returns:

getTexture

public iTextureHandle getTexture()
Get a texture from the material.

Returns:

prepare

public void prepare()
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.