3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include "arb_shader_objects.h"
14 Uniform1i::Uniform1i(int v_):
18 void Uniform1i::apply(int index) const
20 glUniform1iARB(index, v);
24 Uniform1f::Uniform1f(float v_):
28 void Uniform1f::apply(int index) const
30 glUniform1fARB(index, v);
34 Uniform2f::Uniform2f(float v0, float v1)
40 void Uniform2f::apply(int index) const
42 glUniform2fvARB(index, 1, v);
46 Uniform3f::Uniform3f(float v0, float v1, float v2)
53 void Uniform3f::apply(int index) const
55 glUniform3fvARB(index, 1, v);
59 Uniform4f::Uniform4f(float v0, float v1, float v2, float v3)
67 void Uniform4f::apply(int index) const
69 glUniform4fvARB(index, 1, v);