|
Practical Tools for Simple Design
|
#include <config.hpp>
Static Public Attributes | |
| static std::string | TITLE |
| static int | WINDOW_POS_X |
| static int | WINDOW_POS_Y |
| static unsigned int | WINDOW_WIDTH |
| static unsigned int | WINDOW_HEIGHT |
| static Util::Logger::Level | DEFAULT_LOG_LEVEL |
| static unsigned int | FPS_CAP |
| FPS limit. More... | |
Friends | |
| class | Core::Context |
To use, place a config.json file either in the current directory (.) or the parent directory (..). If both directories contain the file, the one in the current directory will be read.
Example directory structure:
The config.json file can contain any number of configurations, each in the following format:
If a key is not present in the config.json, the default value will be used.
|
static |
FPS limit.
Set value to 0 to turn off FPS cap