Another-Game-Engine/AGE — pull request #184 by DorianPinaud (2014-06-10 22:24:40+00:00)
Title: Clean merge

GeometryManager for replace VertexManager

Use like this:
auto &manager = getInstance();

// pool represent a VBO or IBO and its param the attribute of its shader
Key poolvertex = manager->addPoolVertex(nombre_attribut, type_des_attribut, taille_des_attribut, nombre_de_component);
Key indexpool = manager->addPoolIndex();

// assign your IBO on your VBO
manager->attachVertexPoolToIndexPool(poolvertex, indexpool);

// add a vertices and indices to manager
key v = manager->addVertices(some information necessary);
Key i = manager->addIndices(some information necessary);

// connect the vertex on vbo and index on ibo
manager->attachVerticesToVertexPool(v, vertexpool);
manager->attachIndiceToIndexPool(i, indexpool);

// draw the vertices with the indices
manager->draw(i, v);