namespace Msp {
namespace GL {
-Mesh::Mesh():
- vbuf(0),
- ibuf(0),
- dirty(0),
- disallow_rendering(false),
- face_winding(NON_MANIFOLD)
-{ }
-
-Mesh::Mesh(const VertexFormat &f):
- Mesh()
+Mesh::Mesh(const VertexFormat &f)
{
storage(f);
}
}
}
-unsigned Mesh::get_n_vertices() const
+size_t Mesh::get_n_vertices() const
{
return vertices.size();
}
-char *Mesh::modify_vertex(unsigned i)
+char *Mesh::modify_vertex(size_t i)
{
if(vertices.get_format().empty())
throw invalid_operation("Mesh::modify_vertex");