]> git.tdb.fi Git - libs/gl.git/commitdiff
Add aliases for uniform statements without the type suffix
authorMikko Rasa <tdb@tdb.fi>
Mon, 12 Sep 2016 12:08:10 +0000 (15:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 12 Sep 2016 12:08:10 +0000 (15:08 +0300)
source/programdata.cpp

index f75a4ebda945cbadd62de17f2c6c214eca121d0c..9b27af5031070c389e7c232af1cf56606b33db31 100644 (file)
@@ -366,10 +366,15 @@ ProgramData::ProgramUniforms::ProgramUniforms():
 ProgramData::Loader::Loader(ProgramData &pd):
        DataFile::ObjectLoader<ProgramData>(pd)
 {
+       add("uniform", &Loader::uniform1i);
        add("uniform1i", &Loader::uniform1i);
+       add("uniform", &Loader::uniform1f);
        add("uniform1f", &Loader::uniform1f);
+       add("uniform", &Loader::uniform2f);
        add("uniform2f", &Loader::uniform2f);
+       add("uniform", &Loader::uniform3f);
        add("uniform3f", &Loader::uniform3f);
+       add("uniform", &Loader::uniform4f);
        add("uniform4f", &Loader::uniform4f);
 }