]> git.tdb.fi Git - libs/gl.git/blob - source/uniformblock.h
Remove the specialized setters from UniformBlock
[libs/gl.git] / source / uniformblock.h
1 #ifndef MSP_GL_UNIFORMBLOCK_H_
2 #define MSP_GL_UNIFORMBLOCK_H_
3
4 #include <map>
5
6 namespace Msp {
7 namespace GL {
8
9 class Color;
10 class Matrix;
11 class Uniform;
12 class Vector3;
13 class Vector4;
14
15 class UniformBlock
16 {
17 private:
18         std::map<int, const Uniform *> uniforms;
19
20         UniformBlock(const UniformBlock &);
21         UniformBlock &operator=(const UniformBlock &);
22 public:
23         UniformBlock() { }
24
25         void attach(int, const Uniform &);
26
27         void apply(int) const;
28 };
29
30 } // namespace GL
31 } // namespace Msp
32
33 #endif