1 #ifndef MSP_GL_UNIFORM_H_
2 #define MSP_GL_UNIFORM_H_
14 Uniform(const Uniform &);
15 Uniform &operator=(const Uniform &);
17 virtual ~Uniform() { }
19 virtual void apply(int) const =0;
20 virtual Uniform *clone() const =0;
24 class Uniform1i: public Uniform
32 virtual void apply(int index) const;
33 virtual Uniform1i *clone() const;
37 class Uniform1f: public Uniform
45 virtual void apply(int index) const;
46 virtual Uniform1f *clone() const;
50 class Uniform2f: public Uniform
56 Uniform2f(float v0, float v1);
58 virtual void apply(int index) const;
59 virtual Uniform2f *clone() const;
63 class Uniform3f: public Uniform
69 Uniform3f(float v0, float v1, float v2);
71 virtual void apply(int index) const;
72 virtual Uniform3f *clone() const;
76 class Uniform4f: public Uniform
82 Uniform4f(float v0, float v1, float v2, float v3);
84 virtual void apply(int index) const;
85 virtual Uniform4f *clone() const;
89 class UniformMatrix4x4f: public Uniform
95 UniformMatrix4x4f(const float *);
97 virtual void apply(int index) const;
98 virtual UniformMatrix4x4f *clone() const;