]> git.tdb.fi Git - libs/gl.git/blobdiff - source/immediate.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / immediate.cpp
diff --git a/source/immediate.cpp b/source/immediate.cpp
deleted file mode 100644 (file)
index cbcc37b..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "batch.h"
-#include "error.h"
-#include "immediate.h"
-
-namespace Msp {
-namespace GL {
-
-Immediate::Immediate(VertexFormat f):
-       PrimitiveBuilder(array),
-       array(f)
-{
-       array.use_vertex_buffer(0);
-}
-
-void Immediate::reset()
-{
-       if(in_batch)
-               throw invalid_operation("Immediate::reset");
-
-       array.clear();
-}
-
-void Immediate::begin_()
-{
-       indices.clear();
-}
-
-void Immediate::end_()
-{
-       Batch batch(type);
-       batch.append(indices);
-       array.apply();
-       batch.draw();
-}
-
-void Immediate::element_(unsigned i)
-{
-       indices.push_back(i);
-}
-
-} // namespace GL
-} // namespace Msp