1 /***********************************************************
2 * Copyright (C) 1997, Be Inc. All rights reserved.
6 * DESCRIPTION: the global state for GLUT
7 * (takes the place of glutint.h in the C version)
8 ***********************************************************/
10 /***********************************************************
12 ***********************************************************/
14 #include <Application.h>
15 #include "glutWindow.h"
18 /***********************************************************
21 * DESCRIPTION: all the global state variables
22 ***********************************************************/
24 BApplication
*display
;
25 char *programName
; // used in error messages
26 int initX
, initY
; // initial window position
27 int initWidth
, initHeight
; // initial window size
28 unsigned int displayMode
; // initial display mode
29 char *displayString
; // verbose display mode
31 GlutWindow
*currentWindow
; // current window
32 GlutMenu
*currentMenu
; // current menu
34 GlutWindow
**windowList
; // array of pointers to windows
35 int windowListSize
; // size of window list
37 GLUTidleCB idle
; // idle callback
38 GLUTmenuStatusCB menuStatus
; // menu status callback
39 int modifierKeys
; // only valid during keyboard callback
41 bool debug
; // call glGetError
48 initWidth
= initHeight
= 300;
49 displayMode
= GLUT_RGB
| GLUT_SINGLE
| GLUT_DEPTH
;
58 debug
= swapHack
= false;
62 /***********************************************************
63 * Global variable (declared in glutInit.cpp)
64 ***********************************************************/
65 extern GlutState gState
;