void Mesh::vertices(BufferPtr theVertices, int theVertexSize) { _myNumberOfVertices = theVertices->size() / theVertexSize; _myVertexSize = theVertexSize; _myVertices = theVertices; theVertices->rewind(); }
void Mesh::textureCoords(int theLevel, BufferPtr theTextureCoords, int theTextureCoordSize) { _myNumberOfVertices = theTextureCoords->size() / theTextureCoordSize; _myTextureCoordSize[theLevel] = theTextureCoordSize; _myTextureCoords[theLevel] = theTextureCoords; theTextureCoords->rewind(); }