]> git.tdb.fi Git - libs/gl.git/blobdiff - source/immediate.h
Remove immediate mode emulation
[libs/gl.git] / source / immediate.h
diff --git a/source/immediate.h b/source/immediate.h
deleted file mode 100644 (file)
index 40e25cd..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#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<unsigned> indices;
-
-public:
-       Immediate(VertexFormat);
-       void reset();
-private:
-       virtual void begin_();
-       virtual void end_();
-       virtual void element_(unsigned);
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif