Code:
Vector BoxVerts[] = {Vector(12.0f, 14.0f, 12.0f), Vector(8.0f, 15.0f, 22.0f), Vector(9.0f, 3.0f, 7.0f), Vector(11.0f, 64.0f, 12.0f),
Vector(43.0f, 1.0f, 17.0f), Vector(11.0f, 4.0f, 9.0f), Vector(6.0f, 12.0f, 13.0f), Vector(7.0f, 19.0f, 14.0f)};
unsigned int BoxIndices[] = {0, 7, 4, 0, 3, 7, 1, 3, 0, 1, 2, 3, 3, 6, 7, 3, 2, 6, 2, 5, 6, 2, 1, 5, 4, 6, 5, 4, 7, 6, 1, 4, 5, 1, 0, 4};
Vector PyramidVerts[] = {Vector(34.0f, 12.0f, 9.0f), Vector(11.0f, 12.0f, 15.0f), Vector(3.0f, 9.0f, 12.0f), Vector(6.0f, 8.0f, 7.0f), Vector(0.0f, 0.0f, 0.0f)};
unsigned int PyramidIndices[] = {1, 3, 2, 1, 4, 3, 1, 0, 4, 4, 0, 3, 3, 0, 2, 2, 0, 1};
GraphicsMgr.AddMesh("Box");
GraphicsMgr.AddMesh("Pyramid");
GraphicsMgr.AddSubMesh("Box", 8, BoxVerts, 36, BoxIndices, TRIANGLE_LIST);
GraphicsMgr.AddSubMesh("Pyramid", 5, PyramidVerts, 18, PyramidIndices, TRIANGLE_LIST);