X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fimmediate.h;h=40e25cd667c8f6771f01890a49e89a96c134f672;hb=HEAD;hp=89380c41310c3717a20db88b35d9b8ad95b22cc2;hpb=76e338af116120d93d082ad247591ec9adad9233;p=libs%2Fgl.git diff --git a/source/immediate.h b/source/immediate.h deleted file mode 100644 index 89380c41..00000000 --- a/source/immediate.h +++ /dev/null @@ -1,41 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_IMMEDIATE_H_ -#define MSP_GL_IMMEDIATE_H_ - -#include "primitivebuilder.h" - -namespace Msp { -namespace GL { - -/** -Draws primitives on the screen. This works similarly to the OpenGL immediate -mode: call begin() to start a batch of primitives, specify vertices, and call -end() to terminate the batch. However, unlike OpenGL immediate mode, vertices -are not drawn as they are specified. Instead, they are accumulated in a -VertexArray and drawn when end() is called. -*/ -class Immediate: public PrimitiveBuilder -{ -private: - VertexArray array; - std::vector indices; - -public: - Immediate(VertexFormat); - void reset(); -private: - virtual void begin_() { } - virtual void end_(); - virtual void element_(unsigned); -}; - -} // namespace GL -} // namespace Msp - -#endif