I have begun creating a very simple game engine and I am trying to work out how to create a time scale for the game. By time scale I mean some way of increasing and decreasing the speed of the game (not the fps) like creating a slow motion effect.
I have no idea how this could be accomplished so any help would be appreciated.
If this helps I'm using windows, OpenGL, and C++ to make my game engine.
How my engine is setup:
I have an update and draw function. The update function is called 25 times per second while display is called as much as possible.