config_framework.cxx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Filename: config_framework.cxx
  2. // Created by: drose (06Sep00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. #include "config_framework.h"
  15. #include "dconfig.h"
  16. #include "windowFramework.h"
  17. // By including checkPandaVersion.h, we guarantee that runtime
  18. // attempts to load libframework.so/.dll will fail if they
  19. // inadvertently link with the wrong version of libdtool.so/.dll.
  20. #include "checkPandaVersion.h"
  21. Configure(config_framework);
  22. NotifyCategoryDef(framework, "");
  23. ConfigVariableDouble aspect_ratio
  24. ("aspect-ratio", 0.0);
  25. ConfigVariableBool show_frame_rate_meter
  26. ("show-frame-rate-meter", false);
  27. ConfigVariableBool default_stereo_camera
  28. ("default-stereo-camera", true);
  29. ConfigVariableString record_session
  30. ("record-session", "");
  31. ConfigVariableString playback_session
  32. ("playback-session", "");
  33. ConfigureFn(config_framework) {
  34. WindowFramework::init_type();
  35. }