]> git.tdb.fi Git - libs/gl.git/commit
Store Renderables as non-const pointers or references
authorMikko Rasa <tdb@tdb.fi>
Mon, 5 Dec 2016 16:35:22 +0000 (18:35 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 5 Dec 2016 17:50:12 +0000 (19:50 +0200)
commitd031a80ea06e3ccd01041e9c6024fa62adf25160
treecc9e1a3106f0e4a9d106fdc45860035b582d750c
parentdafd3a42a2f06bfd8e88f9240fc2f4bd3d401541
Store Renderables as non-const pointers or references

It's irked me for a while how some renderables (mostly effects) need to
do internal updates in setup_frame, but it's const so I end up with a ton
of mutables.  Since almost all of my use cases actually pass in non-const
Renderables anyway, I'm just going to change this.
19 files changed:
source/effect.cpp
source/effect.h
source/instancescene.cpp
source/instancescene.h
source/occludedscene.cpp
source/occludedscene.h
source/orderedscene.cpp
source/orderedscene.h
source/pipeline.cpp
source/pipeline.h
source/scene.h
source/shadowmap.cpp
source/shadowmap.h
source/simplescene.cpp
source/simplescene.h
source/view.cpp
source/view.h
source/zsortedscene.cpp
source/zsortedscene.h