| 123456789101112131415161718192021222324252627282930313233343536 |
- // Filename: config_framework.cxx
- // Created by: drose (06Sep00)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // PANDA 3D SOFTWARE
- // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
- //
- // All use of this software is subject to the terms of the Panda 3d
- // Software license. You should have received a copy of this license
- // along with this source code; you will also find a current copy of
- // the license at http://www.panda3d.org/license.txt .
- //
- // To contact the maintainers of this program write to
- // [email protected] .
- //
- ////////////////////////////////////////////////////////////////////
- #include "config_framework.h"
- #include <dconfig.h>
- Configure(config_framework);
- NotifyCategoryDef(framework, "");
- ConfigureFn(config_framework) {
- }
- const int win_width = config_framework.GetInt("win-width", 640);
- const int win_height = config_framework.GetInt("win-height", 480);
- const bool fullscreen = config_framework.GetBool("fullscreen", false);
- // The default window background color.
- const float win_background_r = config_framework.GetFloat("win-background-r", 0.41);
- const float win_background_g = config_framework.GetFloat("win-background-g", 0.41);
- const float win_background_b = config_framework.GetFloat("win-background-b", 0.41);
|