]> 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 e12ac9b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "immediate.h"
-
-namespace Msp {
-namespace GL {
-
-Immediate::Immediate(VertexFormat f):
-       PrimitiveBuilder(array),
-       array(f)
-{ }
-
-void Immediate::end_()
-{
-       array.apply();
-       draw_elements(type, indices.size(), &indices[0]);
-
-       array.clear();
-       indices.clear();
-}
-
-void Immediate::element_(unsigned i)
-{
-       indices.push_back(i);
-}
-
-} // namespace GL
-} // namespace Msp