]> git.tdb.fi Git - libs/gl.git/blobdiff - source/primitivebuilder.h
Convert svn:ignore to .gitignore
[libs/gl.git] / source / primitivebuilder.h
index ee8a8477c0cb9fac49e673502e067fd936615948..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
 */
 
@@ -27,18 +27,20 @@ class PrimitiveBuilder: public VertexBuilder
 {
 protected:
        VertexArray &array;
-       RefPtr<VertexArrayBuilder> builder;
+       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_(float, float, float, float);
+       virtual void vertex_(const Vector4 &);
        virtual void begin_() =0;
        virtual void end_() =0;
        virtual void element_(unsigned) =0;