X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmeshbuilder.h;h=6118c6869f4fd0f6dd1d95149088380527007046;hb=df6f8f1f26b1f230dcb1d626d278c43fd48d468d;hp=dbeb0f52659c52eea077cf5ea8e0d574eb05a7d1;hpb=6b31fae3191e88fe391c3d3eebbf3e56789dd3e3;p=libs%2Fgl.git diff --git a/source/meshbuilder.h b/source/meshbuilder.h index dbeb0f52..6118c686 100644 --- a/source/meshbuilder.h +++ b/source/meshbuilder.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2008, 2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -13,19 +13,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