X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmeshbuilder.h;h=d34da63b0123ab645363059f9918fb436b17bda9;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hp=dbeb0f52659c52eea077cf5ea8e0d574eb05a7d1;hpb=6b31fae3191e88fe391c3d3eebbf3e56789dd3e3;p=libs%2Fgl.git diff --git a/source/meshbuilder.h b/source/meshbuilder.h index dbeb0f52..d34da63b 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; + Batch *batch; public: MeshBuilder(Mesh &); + void auto_offset(); private: virtual void begin_(); virtual void end_(); + virtual void element_(unsigned); }; } // namespace GL