]> git.tdb.fi Git - libs/gl.git/blobdiff - source/primitivebuilder.h
Recognize in and out qualifiers for function parameters
[libs/gl.git] / source / primitivebuilder.h
index a4e34a67a76be15d9786ee1efd15309dac28266f..0ffd170cd3e82659cef26528b0bfaf341f2d634e 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_PRIMITIVEBUILDER_H_
 #define MSP_GL_PRIMITIVEBUILDER_H_
 
@@ -30,18 +23,20 @@ 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:
        virtual void vertex_(const Vector4 &);
-       virtual void begin_() =0;
-       virtual void end_() =0;
-       virtual void element_(unsigned) =0;
+       virtual void begin_() = 0;
+       virtual void end_() = 0;
+       virtual void element_(unsigned) = 0;
 };
 
 } // namespace GL