crystalspace.jbind.impl.engine.material
Class csMaterialList

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

public class csMaterialList
extends csBase
implements iMaterialList

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
csMaterialList(iPointer nPointer)
           
 
Method Summary
 int add(iMaterialWrapper obj)
          Add a material
 int find(iMaterialWrapper obj)
          Find a material and return its index
 iMaterialWrapper findByName(java.lang.String Name)
          Find a material by name
 iMaterialWrapper get(int n)
          Return a material by index
 int getCount()
          Return the number of materials in this list
static java.lang.Class getInterfaceClass()
           
static java.lang.String getInterfaceName()
           
static int getInterfaceVersion()
           
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
static void initSCF()
           
protected  boolean isNativePointerValidSafe()
           
 iMaterialWrapper newMaterial(iMaterial material)
          Create a new material
 iMaterialWrapper newMaterial(iMaterialHandle ith)
          Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed
 boolean remove(iMaterialWrapper obj)
          Remove a material
 boolean remove(int n)
          Remove the nth material
 void removeAll()
          Remove all materials
 
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

csMaterialList

public csMaterialList(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()

findByName

public iMaterialWrapper findByName(java.lang.String Name)
Description copied from interface: iMaterialList
Find a material by name

Specified by:
findByName in interface iMaterialList
Parameters:
Name -
Returns:

getInterfaceVersion

public static int getInterfaceVersion()

getInterfaceName

public static java.lang.String getInterfaceName()

getInterfaceClass

public static java.lang.Class getInterfaceClass()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe()

add

public int add(iMaterialWrapper obj)
Description copied from interface: iMaterialList
Add a material

Specified by:
add in interface iMaterialList
Parameters:
obj -
Returns:
See Also:
iMaterialList.add(crystalspace.jbind.interfaces.iengine.material.iMaterialWrapper)

find

public int find(iMaterialWrapper obj)
Description copied from interface: iMaterialList
Find a material and return its index

Specified by:
find in interface iMaterialList
Parameters:
obj -
Returns:
See Also:
iMaterialList.find(crystalspace.jbind.interfaces.iengine.material.iMaterialWrapper)

get

public iMaterialWrapper get(int n)
Description copied from interface: iMaterialList
Return a material by index

Specified by:
get in interface iMaterialList
Parameters:
n -
Returns:
See Also:
iMaterialList.get(int)

getCount

public int getCount()
Description copied from interface: iMaterialList
Return the number of materials in this list

Specified by:
getCount in interface iMaterialList
Returns:
See Also:
iMaterialList.getCount()

newMaterial

public iMaterialWrapper newMaterial(iMaterial material)
Description copied from interface: iMaterialList
Create a new material

Specified by:
newMaterial in interface iMaterialList
Parameters:
material -
Returns:
See Also:
iMaterialList.newMaterial(crystalspace.jbind.interfaces.ivideo.material.iMaterial)

newMaterial

public iMaterialWrapper newMaterial(iMaterialHandle ith)
Description copied from interface: iMaterialList
Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed

Specified by:
newMaterial in interface iMaterialList
Parameters:
ith -
Returns:
See Also:
iMaterialList.newMaterial(crystalspace.jbind.interfaces.ivideo.material.iMaterialHandle)

remove

public boolean remove(iMaterialWrapper obj)
Description copied from interface: iMaterialList
Remove a material

Specified by:
remove in interface iMaterialList
Parameters:
obj -
Returns:
See Also:
iMaterialList.remove(crystalspace.jbind.interfaces.iengine.material.iMaterialWrapper)

remove

public boolean remove(int n)
Description copied from interface: iMaterialList
Remove the nth material

Specified by:
remove in interface iMaterialList
Parameters:
n -
Returns:
See Also:
iMaterialList.remove(int)

removeAll

public void removeAll()
Description copied from interface: iMaterialList
Remove all materials

Specified by:
removeAll in interface iMaterialList
See Also:
iMaterialList.removeAll()