Panda3D
config_framework.cxx
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 
15 #include "config_framework.h"
16 
17 #include "dconfig.h"
18 #include "windowFramework.h"
19 
20 // By including checkPandaVersion.h, we guarantee that runtime
21 // attempts to load libframework.so/.dll will fail if they
22 // inadvertently link with the wrong version of libdtool.so/.dll.
23 
24 #include "checkPandaVersion.h"
25 
26 Configure(config_framework);
27 NotifyCategoryDef(framework, "");
28 
29 ConfigVariableDouble aspect_ratio
30 ("aspect-ratio", 0.0);
31 ConfigVariableBool show_frame_rate_meter
32 ("show-frame-rate-meter", false);
33 ConfigVariableBool show_scene_graph_analyzer_meter
34 ("show-scene-graph-analyzer-meter", false);
35 ConfigVariableString window_type
36 ("window-type", "onscreen");
37 
38 ConfigVariableString record_session
39 ("record-session", "");
40 ConfigVariableString playback_session
41 ("playback-session", "");
42 
43 
44 ConfigureFn(config_framework) {
45  WindowFramework::init_type();
46 }
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating-point type.
This is a convenience class to specialize ConfigVariable as a string type.