3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_UNIFORM_H_
9 #define MSP_GL_UNIFORM_H_
21 virtual ~Uniform() { }
23 virtual void apply(int) const =0;
27 class Uniform1i: public Uniform
34 virtual void apply(int index) const;
38 class Uniform1f: public Uniform
45 virtual void apply(int index) const;
49 class Uniform2f: public Uniform
55 Uniform2f(float v0, float v1);
56 virtual void apply(int index) const;
60 class Uniform3f: public Uniform
66 Uniform3f(float v0, float v1, float v2);
67 virtual void apply(int index) const;
71 class Uniform4f: public Uniform
77 Uniform4f(float v0, float v1, float v2, float v3);
78 virtual void apply(int index) const;