Add 'printFPS' config entry to continuously print FPS to console

Useful on platforms that don't have window decorations.
This commit is contained in:
Jonas Kulla 2014-12-24 06:23:28 +01:00
parent b4bca7ea3b
commit 7cbf81c83a
5 changed files with 78 additions and 15 deletions

View file

@ -142,6 +142,7 @@ namespace po = boost::program_options;
Config::Config()
: rgssVersion(0),
debugMode(false),
printFPS(false),
winResizable(false),
fullscreen(false),
fixedAspectRatio(true),
@ -169,6 +170,7 @@ void Config::read(int argc, char *argv[])
#define PO_DESC_ALL \
PO_DESC(rgssVersion, int) \
PO_DESC(debugMode, bool) \
PO_DESC(printFPS, bool) \
PO_DESC(winResizable, bool) \
PO_DESC(fullscreen, bool) \
PO_DESC(fixedAspectRatio, bool) \