X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Funiform.cpp;h=b183719fe339debaf55402b35cb2eeda15bb3d8a;hp=7ebfc3e0d6f6d09971c8a10c38cd07e4b8c21b62;hb=49f1812b3e5ad73748015df52d0e4dee17246036;hpb=619aae12e01f25e79626a94c973927e5599e99a5 diff --git a/source/uniform.cpp b/source/uniform.cpp index 7ebfc3e0..b183719f 100644 --- a/source/uniform.cpp +++ b/source/uniform.cpp @@ -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) {