X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprimitivebuilder.h;h=b41366e883b6d1962f3b48287e7db0af3ce56e3f;hb=7b956c7f992e37dddd279df0382c2fb94864cb73;hp=8cc1e7292b29598f1f93a228f4ee837459f1ff0a;hpb=16f6f15328b3a6eec87b1b5e5822368966d44a38;p=libs%2Fgl.git diff --git a/source/primitivebuilder.h b/source/primitivebuilder.h index 8cc1e729..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_ @@ -30,15 +23,17 @@ 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_(float, float, float, float); + virtual void vertex_(const Vector4 &); virtual void begin_() =0; virtual void end_() =0; virtual void element_(unsigned) =0;