Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/framework/config_framework.cxx

Go to the documentation of this file.
00001 // Filename: config_framework.cxx
00002 // Created by:  drose (06Sep00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "config_framework.h"
00020 
00021 #include "dconfig.h"
00022 #include "windowFramework.h"
00023 
00024 Configure(config_framework);
00025 NotifyCategoryDef(framework, "");
00026 
00027 ConfigureFn(config_framework) {
00028   WindowFramework::init_type();
00029 }
00030 
00031 const int win_width = config_framework.GetInt("win-width", 640);
00032 const int win_height = config_framework.GetInt("win-height", 480);
00033 const bool fullscreen = config_framework.GetBool("fullscreen", false);
00034 const bool undecorated = config_framework.GetBool("undecorated", false);
00035 const bool cursor_hidden = config_framework.GetBool("cursor-hidden", false);
00036 const float aspect_ratio = config_framework.GetFloat("aspect-ratio", 0.0f);
00037 
00038 // The default window background color.
00039 const float win_background_r = config_framework.GetFloat("win-background-r", 0.41);
00040 const float win_background_g = config_framework.GetFloat("win-background-g", 0.41);
00041 const float win_background_b = config_framework.GetFloat("win-background-b", 0.41);

Generated on Fri May 2 00:38:52 2003 for Panda by doxygen1.3