+++ /dev/null
-#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