libprimis
libprimis copied to clipboard
Make `renderstate` a class
renderstate
is a data-only structure used for carrying around rendering data. However, it has a large number of associated functions which essentially act as member variables. Moving them into the renderstate
object makes it clear what their association is. It is defined in renderva.cpp
, and all of its associated functions are also located there.