From: Mikko Rasa Date: Tue, 11 Jun 2019 21:19:10 +0000 (+0300) Subject: Add overloads of keyframe uniform statements without size suffixes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=94ee5852b42b05559069596e205dc2f000e6153f;p=libs%2Fgl.git Add overloads of keyframe uniform statements without size suffixes --- diff --git a/source/keyframe.cpp b/source/keyframe.cpp index 856b85d6..f610de2d 100644 --- a/source/keyframe.cpp +++ b/source/keyframe.cpp @@ -121,6 +121,12 @@ void KeyFrame::Loader::uniforms() KeyFrame::UniformsLoader::UniformsLoader(KeyFrame &k): DataFile::ObjectLoader(k) { + add("uniform", &UniformsLoader::uniform1f); + add("uniform", &UniformsLoader::uniform2f); + add("uniform", &UniformsLoader::uniform3f); + add("uniform", &UniformsLoader::uniform4f); + + // Deprecated add("uniform1f", &UniformsLoader::uniform1f); add("uniform2f", &UniformsLoader::uniform2f); add("uniform3f", &UniformsLoader::uniform3f);