crystalspace.jbind.impl.engine.texture
Class csTextureList

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.texture.csTextureList
All Implemented Interfaces:
iBase, iPointer, iTextureList

public class csTextureList
extends csBase
implements iTextureList

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csTextureList(iPointer nPointer)
           
 
Method Summary
 int add(iTextureWrapper obj)
          Add a texture.
 int find(iTextureWrapper obj)
          Find a texture and return its index.
 iTextureWrapper findByName(java.lang.String Name)
          Find a texture by name.
 iTextureWrapper get(int n)
          Return a texture by index.
 int getCount()
          Return the number of textures in this list.
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 iTextureWrapper newTexture(iImage image)
          Create a new texture.
 iTextureWrapper newTexture(iTextureHandle ith)
          Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed.
 boolean remove(int n)
          Remove the nth texture.
 boolean remove(iTextureWrapper obj)
          Remove a texture.
 void removeAll()
          Remove all textures.
 
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, 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

csTextureList

public csTextureList(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
See Also:
iBase.getVersion()

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
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

add

public int add(iTextureWrapper obj)
Description copied from interface: iTextureList
Add a texture.

Specified by:
add in interface iTextureList
Parameters:
obj -
Returns:
See Also:
iTextureList.add(crystalspace.jbind.interfaces.iengine.texture.iTextureWrapper)

find

public int find(iTextureWrapper obj)
Description copied from interface: iTextureList
Find a texture and return its index.

Specified by:
find in interface iTextureList
Parameters:
obj -
Returns:
See Also:
iTextureList.find(crystalspace.jbind.interfaces.iengine.texture.iTextureWrapper)

findByName

public iTextureWrapper findByName(java.lang.String Name)
Description copied from interface: iTextureList
Find a texture by name.

Specified by:
findByName in interface iTextureList
Parameters:
Name -
Returns:
See Also:
iTextureList.findByName(java.lang.String)

get

public iTextureWrapper get(int n)
Description copied from interface: iTextureList
Return a texture by index.

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

getCount

public int getCount()
Description copied from interface: iTextureList
Return the number of textures in this list.

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

newTexture

public iTextureWrapper newTexture(iTextureHandle ith)
Description copied from interface: iTextureList
Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed.

Specified by:
newTexture in interface iTextureList
Parameters:
ith -
Returns:
See Also:
iTextureList.newTexture(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle)

newTexture

public iTextureWrapper newTexture(iImage image)
Description copied from interface: iTextureList
Create a new texture.

Specified by:
newTexture in interface iTextureList
Parameters:
image -
Returns:
See Also:
iTextureList.newTexture(crystalspace.jbind.interfaces.igraphic.image.iImage)

remove

public boolean remove(int n)
Description copied from interface: iTextureList
Remove the nth texture.

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

remove

public boolean remove(iTextureWrapper obj)
Description copied from interface: iTextureList
Remove a texture.

Specified by:
remove in interface iTextureList
Parameters:
obj -
Returns:
See Also:
iTextureList.remove(crystalspace.jbind.interfaces.iengine.texture.iTextureWrapper)

removeAll

public void removeAll()
Description copied from interface: iTextureList
Remove all textures.

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