20 for (std::map<unsigned int, Material*>::iterator it =
materials.begin(); it !=
materials.end(); it++)
32 std::ostringstream num;
34 m->
setName(
"Material " + num.str());
50 unsigned int compteur = 0;
51 for (std::map<unsigned int, Material*>::iterator it =
materials.begin(); it !=
materials.end(); it++)
64 std::map<unsigned int, Material*>::iterator it =
materials.find(key);
void setName(const std::string &_name)
Set the name of the object.
std::string getName()
Get the name of the object.
unsigned int counterKey
Counter of materials into the list.
~MaterialManager()
Destructor.
Material * requestMaterial(unsigned int key)
Return a material from the list by its index.
void print()
Print the materials list.
std::map< unsigned int, Material * > materials
Pointer list to materials.
unsigned int registerNewMaterial(Material *m)
Register a new material into the list.
unsigned int id
Identification set by the MaterialManager.