X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprimitivebuilder.h;h=b41366e883b6d1962f3b48287e7db0af3ce56e3f;hb=2be605933f62521bb22780256386a14b371c8b17;hp=ee8a8477c0cb9fac49e673502e067fd936615948;hpb=0f3ae7cf6aed59f07895dfbef6740be3b666fc20;p=libs%2Fgl.git diff --git a/source/primitivebuilder.h b/source/primitivebuilder.h index ee8a8477..b41366e8 100644 --- a/source/primitivebuilder.h +++ b/source/primitivebuilder.h @@ -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_ @@ -27,18 +20,20 @@ class PrimitiveBuilder: public VertexBuilder { protected: VertexArray &array; - RefPtr 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;