Panda3D
|
00001 // Filename: config_framework.cxx 00002 // Created by: drose (06Sep00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "config_framework.h" 00016 00017 #include "dconfig.h" 00018 #include "windowFramework.h" 00019 00020 // By including checkPandaVersion.h, we guarantee that runtime 00021 // attempts to load libframework.so/.dll will fail if they 00022 // inadvertently link with the wrong version of libdtool.so/.dll. 00023 00024 #include "checkPandaVersion.h" 00025 00026 Configure(config_framework); 00027 NotifyCategoryDef(framework, ""); 00028 00029 ConfigVariableDouble aspect_ratio 00030 ("aspect-ratio", 0.0); 00031 ConfigVariableBool show_frame_rate_meter 00032 ("show-frame-rate-meter", false); 00033 ConfigVariableBool show_scene_graph_analyzer_meter 00034 ("show-scene-graph-analyzer-meter", false); 00035 ConfigVariableString window_type 00036 ("window-type", "onscreen"); 00037 00038 ConfigVariableString record_session 00039 ("record-session", ""); 00040 ConfigVariableString playback_session 00041 ("playback-session", ""); 00042 00043 00044 ConfigureFn(config_framework) { 00045 WindowFramework::init_type(); 00046 }