Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Static Public Member Functions | List of all members
FPSWrapper Class Reference

Wraps FPS handling in a class. More...

#include <FPSWrapper.h>

Static Public Member Functions

static void initialize (FPSmanager &fpsManager_)
 Initializes FPS managing. More...
 
static double delay (FPSmanager &fpsManager_)
 Delays execution and calculates FPS. More...
 

Detailed Description

Wraps FPS handling in a class.

Uses SDL2_GFX, by ferzkopp.

Member Function Documentation

double FPSWrapper::delay ( FPSmanager &  fpsManager_)
static

Delays execution and calculates FPS.

Note
Only delays the execution if needed.
Parameters
fpsManager_: The FPS manager to handle.
Returns
The time in seconds since the last call.
void FPSWrapper::initialize ( FPSmanager &  fpsManager_)
static

Initializes FPS managing.

Initializes the FPS manager and sets it to the desired framerate (Configuration::maxFramerate).

Parameters
fpsManager_: The FPS manager to handle.
Note
Will warn if failed to set FPS.

The documentation for this class was generated from the following files: