Back to bsyte

MaterialManager Class Reference

Container fuer alle Materialien. More...

#include <MaterialManager.h>

Collaboration diagram for MaterialManager:

List of all members.

Public Member Functions

virtual ~MaterialManager ()
 Destruktor.
void clear (void)
void add (Texture *t)
bool add (int mid, int tid)
int countTextures (void)
Textureget (int index)
void load (DataInputStream &dataIn)
 Liest den MaterialManager aus dem Inputstream.
void save (DataOutputStream &dataOut)
 Serialisiert den MaterialManager in den Outputstream.

Static Public Member Functions

static MaterialManagergetInstance ()
 Liefert die Singleton-Instanz.

Protected Member Functions

 MaterialManager ()
 Konstruktor.

Private Attributes

std::vector< Texture * > texList
std::vector< Material * > matList
Texture texDummy

Static Private Attributes

static MaterialManager_instance = 0

Detailed Description

Container fuer alle Materialien.


Constructor & Destructor Documentation

MaterialManager::MaterialManager ( ) [protected]

Konstruktor.

Here is the caller graph for this function:

MaterialManager::~MaterialManager ( ) [virtual]

Destruktor.

Here is the call graph for this function:


Member Function Documentation

void MaterialManager::add ( Texture t)
bool MaterialManager::add ( int  mid,
int  tid 
)
void MaterialManager::clear ( void  )

Here is the caller graph for this function:

int MaterialManager::countTextures ( void  )

Here is the caller graph for this function:

Texture * MaterialManager::get ( int  index)

Here is the call graph for this function:

Here is the caller graph for this function:

MaterialManager * MaterialManager::getInstance ( ) [static]

Liefert die Singleton-Instanz.

Returns:
Pointer auf die Instanz

Here is the call graph for this function:

Here is the caller graph for this function:

void MaterialManager::load ( DataInputStream dataIn)

Liest den MaterialManager aus dem Inputstream.

Parameters:
dataInDataInputStream

Here is the call graph for this function:

Here is the caller graph for this function:

void MaterialManager::save ( DataOutputStream dataOut)

Serialisiert den MaterialManager in den Outputstream.

Parameters:
dataOutDataOutputStream
Exceptions:
IOException

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::vector<Material*> MaterialManager::matList [private]
std::vector<Texture*> MaterialManager::texList [private]

The documentation for this class was generated from the following files: