config_framework.cxx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Filename: config_framework.cxx
  2. // Created by: drose (06Sep00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #include "config_framework.h"
  19. #include <dconfig.h>
  20. Configure(config_framework);
  21. NotifyCategoryDef(framework, "");
  22. ConfigureFn(config_framework) {
  23. }
  24. const int win_width = config_framework.GetInt("win-width", 640);
  25. const int win_height = config_framework.GetInt("win-height", 480);
  26. const bool fullscreen = config_framework.GetBool("fullscreen", false);
  27. // The default window background color.
  28. const float win_background_r = config_framework.GetFloat("win-background-r", 0.41);
  29. const float win_background_g = config_framework.GetFloat("win-background-g", 0.41);
  30. const float win_background_b = config_framework.GetFloat("win-background-b", 0.41);