]> git.tdb.fi Git - libs/gl.git/commit
Use template functions for setting vector and matrix uniforms
authorMikko Rasa <tdb@tdb.fi>
Wed, 21 Apr 2021 13:39:40 +0000 (16:39 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 21 Apr 2021 13:39:40 +0000 (16:39 +0300)
commit4124807fcacedc8317bd109f056d48e077d0c12f
tree1026020fc7a6bec2b5024ee3d2af6b4fc8d4ce36
parentccd636b2fa8b9f270fbe600629dd109e78d00992
Use template functions for setting vector and matrix uniforms

These work automatically for all sizes.  Type-safe overloads for arrays
were also added for convenience.
source/render/programdata.cpp
source/render/programdata.h
source/render/renderer.cpp