X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.h;h=db0163e17ef3521ef471109758b9d846c6649782;hb=463746f62d9b48f9fbbba3b2fcf7354067873e94;hp=70370633fd0425cf88222ceab22b40d012604a35;hpb=90e99be82f2bb48ed950fa067b1da8404c86b152;p=libs%2Fgl.git diff --git a/source/mesh.h b/source/mesh.h index 70370633..db0163e1 100644 --- a/source/mesh.h +++ b/source/mesh.h @@ -12,6 +12,7 @@ namespace GL { class Buffer; class Renderer; +class VertexSetup; /** Raw mesh data, consisting of a VertexArray and one or more Batches. Though a @@ -55,7 +56,7 @@ private: std::vector batches; Buffer *vbuf; Buffer *ibuf; - unsigned vao_id; + VertexSetup *vtx_setup; bool defer_buffers; mutable bool dirty; bool disallow_rendering; @@ -73,7 +74,6 @@ public: void use_buffers(bool); private: void create_buffers(); - void setup_vao() const; public: const VertexArray &get_vertices() const { return vertices; }