]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/mesh.cpp
Fix the type of a location variable
[libs/gl.git] / source / core / mesh.cpp
index 4679e3a3f43271fe91d9119e615ac30136d3b9a2..e2dd853c448dff6c25259bcb42aa46d6a1433c70 100644 (file)
@@ -9,8 +9,7 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-Mesh::Mesh(const VertexFormat &f):
-       Mesh()
+Mesh::Mesh(const VertexFormat &f)
 {
        storage(f);
 }
@@ -80,12 +79,12 @@ void Mesh::check_buffers(unsigned mask)
        }
 }
 
-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");