X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmeshbuilder.h;h=5f4a9dc83ec1cceae9410468051caa86c6a36770;hp=dbeb0f52659c52eea077cf5ea8e0d574eb05a7d1;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=6b31fae3191e88fe391c3d3eebbf3e56789dd3e3 diff --git a/source/meshbuilder.h b/source/meshbuilder.h index dbeb0f52..5f4a9dc8 100644 --- a/source/meshbuilder.h +++ b/source/meshbuilder.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_MESHBUILDER_H_ #define MSP_GL_MESHBUILDER_H_ @@ -13,19 +6,24 @@ Distributed under the LGPL namespace Msp { namespace GL { +class Batch; class Mesh; class MeshBuilder: public PrimitiveBuilder { private: - Mesh &mesh; - unsigned first; + Mesh &mesh; + Batch *batch; public: MeshBuilder(Mesh &); + ~MeshBuilder(); + + void auto_offset(); private: virtual void begin_(); virtual void end_(); + virtual void element_(unsigned); }; } // namespace GL