CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

iMaterialList Struct Reference
[Textures & MaterialsTextures & Materials]

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

#include <iengine/material.h>

Inheritance diagram for iMaterialList:

iBase List of all members.

Public Member Functions

virtual int Add (iMaterialWrapper *obj)=0
 Add a material.
virtual int Find (iMaterialWrapper *obj) const =0
 Find a material and return its index.
virtual iMaterialWrapperFindByName (const char *Name) const =0
 Find a material by name.
virtual iMaterialWrapperGet (int n) const =0
 Return a material by index.
virtual int GetCount () const =0
 Return the number of materials in this list.
virtual iMaterialWrapperNewMaterial (iMaterial *material, const char *name)=0
 Create a new material.
virtual bool Remove (int n)=0
 Remove the nth material.
virtual bool Remove (iMaterialWrapper *obj)=0
 Remove a material.
virtual void RemoveAll ()=0
 Remove all materials.

Detailed Description

This class represents a list of materials.

Main ways to get pointers to this interface:

Main users of this interface:

Definition at line 147 of file 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 iMaterial material,
const char *  name
[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.4.4