1 #include <msp/gl/extensions/arb_shader_objects.h>
8 void UniformScalar<int>::apply(int index, unsigned size, const int *value)
10 glUniform1iv(index, size, value);
14 void UniformScalar<float>::apply(int index, unsigned size, const float *value)
16 glUniform1fv(index, size, value);
21 void UniformVector<int, 2>::apply(int index, unsigned size, const int *value)
23 glUniform2iv(index, size, value);
27 void UniformVector<float, 2>::apply(int index, unsigned size, const float *value)
29 glUniform2fv(index, size, value);
33 void UniformVector<int, 3>::apply(int index, unsigned size, const int *value)
35 glUniform3iv(index, size, value);
39 void UniformVector<float, 3>::apply(int index, unsigned size, const float *value)
41 glUniform3fv(index, size, value);
45 void UniformVector<int, 4>::apply(int index, unsigned size, const int *value)
47 glUniform4iv(index, size, value);
51 void UniformVector<float, 4>::apply(int index, unsigned size, const float *value)
53 glUniform4fv(index, size, value);
58 void UniformMatrix<float, 2, 2>::apply(int index, unsigned size, const float *value)
60 glUniformMatrix2fv(index, size, false, value);
64 void UniformMatrix<float, 3, 3>::apply(int index, unsigned size, const float *value)
66 glUniformMatrix3fv(index, size, false, value);
70 void UniformMatrix<float, 4, 4>::apply(int index, unsigned size, const float *value)
72 glUniformMatrix4fv(index, size, false, value);