]> git.tdb.fi Git - libs/gl.git/blobdiff - source/uniformblock.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / uniformblock.h
diff --git a/source/uniformblock.h b/source/uniformblock.h
deleted file mode 100644 (file)
index 1a27710..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef MSP_GL_UNIFORMBLOCK_H_
-#define MSP_GL_UNIFORMBLOCK_H_
-
-#include <map>
-#include <vector>
-#include "bufferable.h"
-#include "program.h"
-
-namespace Msp {
-namespace GL {
-
-class BufferRange;
-class Color;
-class Matrix;
-class Uniform;
-class Vector3;
-class Vector4;
-
-/**
-Stores uniforms with a specific layout.  Both named and default uniform blocks
-are supported.
-*/
-class UniformBlock: public Bufferable
-{
-private:
-       std::map<int, const Uniform *> uniforms;
-       unsigned size;
-       std::vector<char> data;
-       mutable BufferRange *buf_range;
-
-       UniformBlock(const UniformBlock &);
-       UniformBlock &operator=(const UniformBlock &);
-public:
-       UniformBlock();
-       UniformBlock(unsigned);
-       ~UniformBlock();
-
-private:
-       virtual unsigned get_data_size() const { return size; }
-       virtual unsigned get_alignment() const;
-       virtual void offset_changed();
-       virtual void upload_data() const;
-
-public:
-       void attach(int, const Uniform &);
-       void attach(const Program::UniformInfo &, const Uniform &);
-
-       void apply(int) const;
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif