FPSCounter: Flush the logs every second and close them when the renderer is shut down.

This commit is contained in:
Jules Blok
2014-07-09 22:30:34 +02:00
parent 1754cbda9d
commit 6def4ead01
3 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,9 @@ namespace FPSCounter
// Initializes the FPS counter.
void Initialize();
// Shutdown the FPS counter by closing the logs.
void Shutdown();
// Called when a frame is rendered. Returns the value to be displayed on
// screen as the FPS counter (updated every second).
int Update();