]> git.tdb.fi Git - libs/gl.git/blobdiff - source/primitivebuilder.h
Add an element offset to PrimitiveBuilder
[libs/gl.git] / source / primitivebuilder.h
index a4e34a67a76be15d9786ee1efd15309dac28266f..b8b90f44f081391e08f1378cd8517cf800a7231c 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Copyright © 2008, 2010-2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -30,11 +30,13 @@ protected:
        VertexArrayBuilder vab;
        PrimitiveType type;
        bool in_batch;
+       unsigned offs;
 
        PrimitiveBuilder(VertexArray &);
 public:
        void begin(PrimitiveType);
        void end();
+       void offset(unsigned);
        void element(unsigned);
        PrimitiveType get_type() const;
 protected: