00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "config_framework.h"
00020
00021 #include "dconfig.h"
00022 #include "windowFramework.h"
00023
00024 Configure(config_framework);
00025 NotifyCategoryDef(framework, "");
00026
00027 ConfigureFn(config_framework) {
00028 WindowFramework::init_type();
00029 }
00030
00031 const int win_width = config_framework.GetInt("win-width", 640);
00032 const int win_height = config_framework.GetInt("win-height", 480);
00033 const bool fullscreen = config_framework.GetBool("fullscreen", false);
00034 const bool undecorated = config_framework.GetBool("undecorated", false);
00035 const bool cursor_hidden = config_framework.GetBool("cursor-hidden", false);
00036 const float aspect_ratio = config_framework.GetFloat("aspect-ratio", 0.0f);
00037
00038
00039 const float win_background_r = config_framework.GetFloat("win-background-r", 0.41);
00040 const float win_background_g = config_framework.GetFloat("win-background-g", 0.41);
00041 const float win_background_b = config_framework.GetFloat("win-background-b", 0.41);