crystalspace.jbind.interfaces.iengine.material
Interface iMaterialList

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

public interface iMaterialList
extends iBase

This class represents a list of materials.

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

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
 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 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(iMaterialWrapper obj)
Add a material

Parameters:
obj -
Returns:

find

public int find(iMaterialWrapper obj)
Find a material and return its index

Parameters:
obj -
Returns:

findByName

public iMaterialWrapper findByName(java.lang.String Name)
Find a material by name

Parameters:
Name -
Returns:

get

public iMaterialWrapper get(int n)
Return a material by index

Parameters:
n -
Returns:

getCount

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

Returns:

newMaterial

public iMaterialWrapper newMaterial(iMaterialHandle ith)
Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed

Parameters:
ith -
Returns:

newMaterial

public iMaterialWrapper newMaterial(iMaterial material)
Create a new material

Parameters:
material -
Returns:

remove

public boolean remove(int n)
Remove the nth material

Parameters:
n -
Returns:

remove

public boolean remove(iMaterialWrapper obj)
Remove a material

Parameters:
obj -
Returns:

removeAll

public void removeAll()
Remove all materials