]> git.tdb.fi Git - libs/gl.git/blobdiff - source/uniformblock.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / uniformblock.cpp
diff --git a/source/uniformblock.cpp b/source/uniformblock.cpp
deleted file mode 100644 (file)
index 2ff00fa..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <stdexcept>
-#include "color.h"
-#include "matrix.h"
-#include "uniform.h"
-#include "uniformblock.h"
-#include "vector.h"
-
-using namespace std;
-
-namespace Msp {
-namespace GL {
-
-void UniformBlock::attach(int index, const Uniform &uni)
-{
-       uniforms[index] = &uni;
-}
-
-void UniformBlock::apply(int index) const
-{
-       if(index>=0)
-               throw logic_error("GL_ARB_uniform_buffer_object support not implemented yet");
-
-       for(map<int, const Uniform *>::const_iterator i=uniforms.begin(); i!=uniforms.end(); ++i)
-               i->second->apply(i->first);
-}
-
-} // namespace GL
-} // namespace Msp