crystalspace.jbind.interfaces.iengine.material
Interface iMaterialWrapper

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

public interface iMaterialWrapper
extends iBase

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

Method Summary
 iMaterialWrapper Clone()
          Create a clone this material wrapper,using the same material handle.
 iMaterial getMaterial()
          Get the original material
 iMaterialHandle getMaterialHandle()
          Get the material handle
 boolean isVisitRequired()
          Return true if it is needed to call visit()
 iObject queryObject()
          Get the iObject for this material
 void register(iTextureManager txtmng)
          Register the material with the texture manager
 void setMaterial(iMaterial material)
          Change the base material.Note : The changes will not be visible until you re-register the material
 void setMaterialHandle(iMaterialHandle mat)
          Change the material handle.Note : This will also change the base material to 0.
 void visit()
          Visit 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

Clone

public iMaterialWrapper Clone()
Create a clone this material wrapper,using the same material handle.

Returns:

getMaterial

public iMaterial getMaterial()
Get the original material

Returns:

getMaterialHandle

public iMaterialHandle getMaterialHandle()
Get the material handle

Returns:

isVisitRequired

public boolean isVisitRequired()
Return true if it is needed to call visit()

Returns:

queryObject

public iObject queryObject()
Get the iObject for this material

Returns:

register

public void register(iTextureManager txtmng)
Register the material with the texture manager

Parameters:
txtmng -

setMaterial

public void setMaterial(iMaterial material)
Change the base material.Note : The changes will not be visible until you re-register the material

Parameters:
material -

setMaterialHandle

public void setMaterialHandle(iMaterialHandle mat)
Change the material handle.Note : This will also change the base material to 0.

Parameters:
mat -

visit

public void visit()
Visit this material. This should be called by the engine right before using the material. It will call Visit() on all textures that are used