Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Globals.cpp

Go to the documentation of this file.
00001 
00007 #include "Globals.h"
00008 
00009 // mouse
00010 bool g_invertMouse;
00011 float g_mouseSensibility;
00012 
00013 // screen
00014 bool g_fullscreen, g_toggleFullscreen, g_visible;
00015 int g_fullscreenWidth, g_fullscreenHeight, g_bitsPerPixel;
00016 int g_windowLeft, g_windowRight, g_windowTop, g_windowBottom;
00017 int g_width, g_height;
00018 int g_middleX, g_middleY;
00019 
00020 // application
00021 bool g_running;
00022 
00023 bool g_showFPS;
00024 float g_time, g_frameTime, g_fps;
00025 int g_frames;
00026 
00027 bool g_console, g_drawConsole;
00028 
00029 bool g_stencilBuffer;
00030 
00031 /********************************************************************
00032  * Init Globals
00033  */
00034 void initGlobals() {
00035         g_mouseSensibility      = 0.1f;
00036         g_invertMouse           = false;
00037 
00038         g_fullscreen            = true;
00039         g_toggleFullscreen      = false;
00040         g_visible                       = true;
00041 
00042         g_fullscreenWidth       = 1024;
00043         g_fullscreenHeight      = 768;
00044         g_bitsPerPixel          = 32;
00045 
00046         g_windowLeft            = 10;
00047         g_windowRight           = 800 + g_windowLeft;
00048         g_windowTop                     = 10;
00049         g_windowBottom          = 600 + g_windowTop;
00050 
00051         g_running                       = true;
00052         g_time                          = 0.0f;
00053         g_frameTime                     = 0.0f;
00054         g_fps                           = 0.0f;
00055         g_frames                        = 0;
00056 
00057         g_drawConsole           = false;
00058         g_console                       = false;
00059 
00060         g_showFPS                       = true;
00061 
00062         g_stencilBuffer         = true;
00063 }

Generated on Sun Jun 5 15:47:03 2005 for Defacto by  doxygen 1.4.3