X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprimitivebuilder.h;h=0ffd170cd3e82659cef26528b0bfaf341f2d634e;hp=8cc1e7292b29598f1f93a228f4ee837459f1ff0a;hb=HEAD;hpb=16f6f15328b3a6eec87b1b5e5822368966d44a38 diff --git a/source/primitivebuilder.h b/source/primitivebuilder.h deleted file mode 100644 index 8cc1e729..00000000 --- a/source/primitivebuilder.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $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_ - -#include "primitivetype.h" -#include "vertexarray.h" -#include "vertexbuilder.h" - -namespace Msp { -namespace GL { - -class VertexArray; -class VertexArrayBuilder; - -/** -Base class for primitive builders. This is derived from VertexBuilder and adds -begin() and end() functions for specifying batches of primitives instead of -just vertices. -*/ -class PrimitiveBuilder: public VertexBuilder -{ -protected: - VertexArray &array; - VertexArrayBuilder vab; - PrimitiveType type; - bool in_batch; - - PrimitiveBuilder(VertexArray &); -public: - void begin(PrimitiveType); - void end(); - void element(unsigned); - PrimitiveType get_type() const; -protected: - virtual void vertex_(float, float, float, float); - virtual void begin_() =0; - virtual void end_() =0; - virtual void element_(unsigned) =0; -}; - -} // namespace GL -} // namespace Msp - -#endif