X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Funiform.cpp;h=b183719fe339debaf55402b35cb2eeda15bb3d8a;hp=943600e0d560522cb6adf2d0aacca20b91381518;hb=49f1812b3e5ad73748015df52d0e4dee17246036;hpb=2c3b2b65f5bb33fa7c4b5797d61c0e100df93a4e diff --git a/source/uniform.cpp b/source/uniform.cpp index 943600e0..b183719f 100644 --- a/source/uniform.cpp +++ b/source/uniform.cpp @@ -1,4 +1,4 @@ -#include "arb_shader_objects.h" +#include #include "uniform.h" namespace Msp { @@ -17,18 +17,36 @@ void UniformScalar::apply(int index, unsigned size, const float *value) } +template<> +void UniformVector::apply(int index, unsigned size, const int *value) +{ + glUniform2iv(index, size, value); +} + template<> void UniformVector::apply(int index, unsigned size, const float *value) { glUniform2fv(index, size, value); } +template<> +void UniformVector::apply(int index, unsigned size, const int *value) +{ + glUniform3iv(index, size, value); +} + template<> void UniformVector::apply(int index, unsigned size, const float *value) { glUniform3fv(index, size, value); } +template<> +void UniformVector::apply(int index, unsigned size, const int *value) +{ + glUniform4iv(index, size, value); +} + template<> void UniformVector::apply(int index, unsigned size, const float *value) {