X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmeshbuilder.h;h=0755eeb20ba6096d1bf524279194eb7d97940a3b;hp=dbeb0f52659c52eea077cf5ea8e0d574eb05a7d1;hb=13cf58be0e455227e8e5ae418b276a11c7873869;hpb=6b31fae3191e88fe391c3d3eebbf3e56789dd3e3 diff --git a/source/meshbuilder.h b/source/meshbuilder.h index dbeb0f52..0755eeb2 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,22 @@ 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 &); + void auto_offset(); private: virtual void begin_(); virtual void end_(); + virtual void element_(unsigned); }; } // namespace GL