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<float, 2>::apply(int index, unsigned size, const float *value)
23 glUniform2fv(index, size, value);
27 void UniformVector<float, 3>::apply(int index, unsigned size, const float *value)
29 glUniform3fv(index, size, value);
33 void UniformVector<float, 4>::apply(int index, unsigned size, const float *value)
35 glUniform4fv(index, size, value);
40 void UniformMatrix<float, 2, 2>::apply(int index, unsigned size, const float *value)
42 glUniformMatrix2fv(index, size, false, value);
46 void UniformMatrix<float, 3, 3>::apply(int index, unsigned size, const float *value)
48 glUniformMatrix3fv(index, size, false, value);
52 void UniformMatrix<float, 4, 4>::apply(int index, unsigned size, const float *value)
54 glUniformMatrix4fv(index, size, false, value);