]> git.tdb.fi Git - libs/gl.git/blobdiff - source/primitivebuilder.h
Add a MatrixStack to VertexBuilder
[libs/gl.git] / source / primitivebuilder.h
index cfe0a02c8bbea18cf04ba114d8999c3514f70009..a4e34a67a76be15d9786ee1efd15309dac28266f 100644 (file)
@@ -27,7 +27,7 @@ class PrimitiveBuilder: public VertexBuilder
 {
 protected:
        VertexArray &array;
-       RefPtr<VertexArrayBuilder> builder;
+       VertexArrayBuilder vab;
        PrimitiveType type;
        bool in_batch;
 
@@ -35,11 +35,13 @@ protected:
 public:
        void begin(PrimitiveType);
        void end();
+       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;
 };
 
 } // namespace GL