X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Funiform.cpp;h=b183719fe339debaf55402b35cb2eeda15bb3d8a;hp=688052ff16d0ae3b8fdebc5fafe99e1025c118d9;hb=HEAD;hpb=f9c15dc04462b2f1eea1d6bdd71e3ba967b1bd8c diff --git a/source/uniform.cpp b/source/uniform.cpp deleted file mode 100644 index 688052ff..00000000 --- a/source/uniform.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "arb_shader_objects.h" -#include "uniform.h" - -namespace Msp { -namespace GL { - -template<> -void UniformScalar::apply(int index) const -{ - glUniform1iARB(index, value); -} - -template<> -void UniformScalar::apply(int index) const -{ - glUniform1fARB(index, value); -} - - -template<> -void UniformVector::apply(int index) const -{ - glUniform2fvARB(index, 1, value); -} - -template<> -void UniformVector::apply(int index) const -{ - glUniform3fvARB(index, 1, value); -} - -template<> -void UniformVector::apply(int index) const -{ - glUniform4fvARB(index, 1, value); -} - - -template<> -void UniformMatrix::apply(int index) const -{ - glUniformMatrix4fvARB(index, 1, false, value); -} - -} // namespace GL -} // namespace Msp