CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iMaterialList Struct Reference
[Textures & Materials]

This class represents a list of materials. More...

#include <material.h>

Inheritance diagram for iMaterialList:

iBase List of all members.

Public Methods

virtual iMaterialWrapperNewMaterial (iMaterial *material)=0
 Create a new material. More...

virtual iMaterialWrapperNewMaterial (iMaterialHandle *ith)=0
 Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed. More...

virtual int GetCount () const=0
 Return the number of materials in this list. More...

virtual iMaterialWrapperGet (int n) const=0
 Return a material by index. More...

virtual int Add (iMaterialWrapper *obj)=0
 Add a material. More...

virtual bool Remove (iMaterialWrapper *obj)=0
 Remove a material. More...

virtual bool Remove (int n)=0
 Remove the nth material. More...

virtual void RemoveAll ()=0
 Remove all materials. More...

virtual int Find (iMaterialWrapper *obj) const=0
 Find a material and return its index. More...

virtual iMaterialWrapperFindByName (const char *Name) const=0
 Find a material by name. More...


Detailed Description

This class represents a list of materials.

Definition at line 111 of file iengine/material.h.


Member Function Documentation

virtual int iMaterialList::Add iMaterialWrapper   obj [pure virtual]
 

Add a material.

virtual int iMaterialList::Find iMaterialWrapper   obj const [pure virtual]
 

Find a material and return its index.

virtual iMaterialWrapper* iMaterialList::FindByName const char *    Name const [pure virtual]
 

Find a material by name.

virtual iMaterialWrapper* iMaterialList::Get int    n const [pure virtual]
 

Return a material by index.

virtual int iMaterialList::GetCount   const [pure virtual]
 

Return the number of materials in this list.

virtual iMaterialWrapper* iMaterialList::NewMaterial iMaterialHandle   ith [pure virtual]
 

Create a engine wrapper for a pre-prepared iTextureHandle The handle will be IncRefed.

virtual iMaterialWrapper* iMaterialList::NewMaterial iMaterial   material [pure virtual]
 

Create a new material.

virtual bool iMaterialList::Remove int    n [pure virtual]
 

Remove the nth material.

virtual bool iMaterialList::Remove iMaterialWrapper   obj [pure virtual]
 

Remove a material.

virtual void iMaterialList::RemoveAll   [pure virtual]
 

Remove all materials.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14