1 #include <msp/gl/extensions/arb_shader_objects.h>
2 #include <msp/gl/extensions/nv_non_square_matrices.h>
9 void UniformScalar<int>::apply(int index, unsigned size, const int *value)
11 glUniform1iv(index, size, value);
15 void UniformScalar<float>::apply(int index, unsigned size, const float *value)
17 glUniform1fv(index, size, value);
22 void UniformVector<int, 2>::apply(int index, unsigned size, const int *value)
24 glUniform2iv(index, size, value);
28 void UniformVector<float, 2>::apply(int index, unsigned size, const float *value)
30 glUniform2fv(index, size, value);
34 void UniformVector<int, 3>::apply(int index, unsigned size, const int *value)
36 glUniform3iv(index, size, value);
40 void UniformVector<float, 3>::apply(int index, unsigned size, const float *value)
42 glUniform3fv(index, size, value);
46 void UniformVector<int, 4>::apply(int index, unsigned size, const int *value)
48 glUniform4iv(index, size, value);
52 void UniformVector<float, 4>::apply(int index, unsigned size, const float *value)
54 glUniform4fv(index, size, value);
59 void UniformMatrix<float, 2, 2>::apply(int index, unsigned size, const float *value)
61 glUniformMatrix2fv(index, size, false, value);
65 void UniformMatrix<float, 2, 3>::apply(int index, unsigned size, const float *value)
67 glUniformMatrix3x2fv(index, size, false, value);
71 void UniformMatrix<float, 2, 4>::apply(int index, unsigned size, const float *value)
73 glUniformMatrix4x2fv(index, size, false, value);
77 void UniformMatrix<float, 3, 2>::apply(int index, unsigned size, const float *value)
79 glUniformMatrix2x3fv(index, size, false, value);
83 void UniformMatrix<float, 3, 3>::apply(int index, unsigned size, const float *value)
85 glUniformMatrix3fv(index, size, false, value);
89 void UniformMatrix<float, 3, 4>::apply(int index, unsigned size, const float *value)
91 glUniformMatrix4x3fv(index, size, false, value);
95 void UniformMatrix<float, 4, 2>::apply(int index, unsigned size, const float *value)
97 glUniformMatrix2x4fv(index, size, false, value);
101 void UniformMatrix<float, 4, 3>::apply(int index, unsigned size, const float *value)
103 glUniformMatrix3x4fv(index, size, false, value);
107 void UniformMatrix<float, 4, 4>::apply(int index, unsigned size, const float *value)
109 glUniformMatrix4fv(index, size, false, value);