X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmesh.cpp;h=e2dd853c448dff6c25259bcb42aa46d6a1433c70;hb=1d8cad55b56c072dc7a59e98015d824094f812ea;hp=4679e3a3f43271fe91d9119e615ac30136d3b9a2;hpb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;p=libs%2Fgl.git diff --git a/source/core/mesh.cpp b/source/core/mesh.cpp index 4679e3a3..e2dd853c 100644 --- a/source/core/mesh.cpp +++ b/source/core/mesh.cpp @@ -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");