MattGuerrette / VixenEngine

Open Source C++ Game Engine
http://mattguerrette.github.io/VixenEngine/
GNU General Public License v3.0
39 stars 13 forks source link

Time should be a singleton. #9

Closed Erbelding closed 9 years ago

Erbelding commented 9 years ago

Instead of passing (float dt) around everywhere in the update and render loops, time should be a singleton that contains get methods for all of the relevant values (deltaTime, totalTime, FPS, etc.).