]> git.tdb.fi Git - libs/gl.git/commitdiff
Add overloads of keyframe uniform statements without size suffixes
authorMikko Rasa <tdb@tdb.fi>
Tue, 11 Jun 2019 21:19:10 +0000 (00:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 11 Jun 2019 21:19:55 +0000 (00:19 +0300)
source/keyframe.cpp

index 856b85d6c20a15503d1a386458f8e393d0ff7409..f610de2d42afbd08dd118cf97e7f54afa75da7de 100644 (file)
@@ -121,6 +121,12 @@ void KeyFrame::Loader::uniforms()
 KeyFrame::UniformsLoader::UniformsLoader(KeyFrame &k):
        DataFile::ObjectLoader<KeyFrame>(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);