Fixed Mesh:setVertexMap when the mesh has more than 2^16-1 vertices (still needs more work to make it use smaller data types when available), added Mesh:setVertices

--HG--
branch : Mesh
This commit is contained in:
Alex Szpakowski
2013-09-30 04:30:17 -03:00
parent 857296f107
commit c426998b04
5 changed files with 61 additions and 19 deletions
+2 -2
View File
@@ -90,14 +90,14 @@ public:
* A 0-element vector is equivalent to the default vertex map:
* {0, 1, 2, 3, 4, ...}
**/
void setVertexMap(const std::vector<uint16> &map);
void setVertexMap(const std::vector<uint32> &map);
/**
* Gets a pointer to the vertex map array. The pointer is only valid until
* the next function call in the graphics module.
* May return null if the vertex map is empty.
**/
const uint16 *getVertexMap() const;
const uint32 *getVertexMap() const;
/**
* Gets the total number of elements in the vertex map array.