X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.h;h=633cf3ab377651a95bd8835cd6922c2b2a759656;hb=dc1d1159a61f378bda11e5989ad694a86b9a3c77;hp=2a5ce47476a61807cccec7c4566ec5eb3ade322d;hpb=e92458a4a0e6191bff549a8b316dbbbd7c56e90f;p=libs%2Fgl.git diff --git a/source/mesh.h b/source/mesh.h index 2a5ce474..633cf3ab 100644 --- a/source/mesh.h +++ b/source/mesh.h @@ -10,7 +10,6 @@ Distributed under the LGPL #include #include "batch.h" -#include "meshbuilder.h" #include "vertexarray.h" namespace Msp { @@ -39,10 +38,12 @@ private: public: Mesh(); Mesh(VertexFormat f); - RefPtr modify(); + + void use_vertex_buffer(bool); const VertexArray &get_vertices() const { return vertices; } void add_batch(const Batch &b); const std::list &get_batches() { return batches; } + void clear(); void draw() const; };