crystalspace.jbind.impl.engine.material
Class csMaterialWrapper

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.material.csMaterialWrapper
All Implemented Interfaces:
iBase, iMaterialWrapper, iPointer

public class csMaterialWrapper
extends csBase
implements iMaterialWrapper

Author:
qan To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csMaterialWrapper(iPointer nPointer)
           
 
Method Summary
 iMaterialWrapper Clone()
          Create a clone this material wrapper,using the same material handle.
static java.lang.Class getInterfaceClass()
           
static java.lang.String getInterfaceName()
           
static int getInterfaceVersion()
           
 iMaterial getMaterial()
          Get the original material
 iMaterialHandle getMaterialHandle()
          Get the material handle
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
static void initSCF()
           
protected  boolean isNativePointerValidSafe()
           
 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 class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, isNativePointerValidSafe, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csMaterialWrapper

public csMaterialWrapper(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase

initSCF

public static void initSCF()

getInterfaceVersion

public static int getInterfaceVersion()

getInterfaceName

public static java.lang.String getInterfaceName()

getInterfaceClass

public static java.lang.Class getInterfaceClass()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe()

Clone

public iMaterialWrapper Clone()
Description copied from interface: iMaterialWrapper
Create a clone this material wrapper,using the same material handle.

Specified by:
Clone in interface iMaterialWrapper
Returns:
See Also:
iMaterialWrapper.Clone()

getMaterial

public iMaterial getMaterial()
Description copied from interface: iMaterialWrapper
Get the original material

Specified by:
getMaterial in interface iMaterialWrapper
Returns:
See Also:
iMaterialWrapper.getMaterial()

getMaterialHandle

public iMaterialHandle getMaterialHandle()
Description copied from interface: iMaterialWrapper
Get the material handle

Specified by:
getMaterialHandle in interface iMaterialWrapper
Returns:
See Also:
iMaterialWrapper.getMaterialHandle()

isVisitRequired

public boolean isVisitRequired()
Description copied from interface: iMaterialWrapper
Return true if it is needed to call visit()

Specified by:
isVisitRequired in interface iMaterialWrapper
Returns:
See Also:
iMaterialWrapper.isVisitRequired()

queryObject

public iObject queryObject()
Description copied from interface: iMaterialWrapper
Get the iObject for this material

Specified by:
queryObject in interface iMaterialWrapper
Returns:
See Also:
iMaterialWrapper.queryObject()

register

public void register(iTextureManager txtmng)
Description copied from interface: iMaterialWrapper
Register the material with the texture manager

Specified by:
register in interface iMaterialWrapper
Parameters:
txtmng -
See Also:
iMaterialWrapper.register(crystalspace.jbind.interfaces.ivideo.txtmgr.iTextureManager)

setMaterial

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

Specified by:
setMaterial in interface iMaterialWrapper
Parameters:
material -
See Also:
iMaterialWrapper.setMaterial(crystalspace.jbind.interfaces.ivideo.material.iMaterial)

setMaterialHandle

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

Specified by:
setMaterialHandle in interface iMaterialWrapper
Parameters:
mat -
See Also:
iMaterialWrapper.setMaterialHandle(crystalspace.jbind.interfaces.ivideo.material.iMaterialHandle)

visit

public void visit()
Description copied from interface: iMaterialWrapper
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

Specified by:
visit in interface iMaterialWrapper
See Also:
iMaterialWrapper.visit()