crystalspace.jbind.interfaces.iengine.texture
Interface iTextureList

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

public interface iTextureList
extends iBase

This class represents a list of texture wrappers.

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

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.
 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 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

add

public int add(iTextureWrapper obj)
Add a texture.

Parameters:
obj -
Returns:

find

public int find(iTextureWrapper obj)
Find a texture and return its index.

Parameters:
obj -
Returns:

findByName

public iTextureWrapper findByName(java.lang.String Name)
Find a texture by name.

Parameters:
Name -
Returns:

get

public iTextureWrapper get(int n)
Return a texture by index.

Parameters:
n -
Returns:

getCount

public int getCount()
Return the number of textures in this list.

Returns:

newTexture

public iTextureWrapper newTexture(iTextureHandle ith)
Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed.

Parameters:
ith -
Returns:

newTexture

public iTextureWrapper newTexture(iImage image)
Create a new texture.

Parameters:
image -
Returns:

remove

public boolean remove(int n)
Remove the nth texture.

Parameters:
n -
Returns:

remove

public boolean remove(iTextureWrapper obj)
Remove a texture.

Parameters:
obj -
Returns:

removeAll

public void removeAll()
Remove all textures.