1 /***********************************************************
2 * Copyright (C) 1997, Be Inc. Copyright (C) 1999, Jake Hamby.
4 * This program is freely distributable without licensing fees
5 * and is provided without guarantee or warrantee expressed or
6 * implied. This program is -not- in the public domain.
11 * DESCRIPTION: the global state for GLUT
12 * (takes the place of glutint.h in the C version)
13 ***********************************************************/
15 /***********************************************************
17 ***********************************************************/
19 #include <Application.h>
20 #include "glutWindow.h"
23 /***********************************************************
26 * DESCRIPTION: all the global state variables
27 ***********************************************************/
29 BApplication
*display
;
32 int initX
, initY
; // initial window position
33 int initWidth
, initHeight
; // initial window size
34 unsigned int displayMode
; // initial display mode
35 char *displayString
; // verbose display mode
37 GlutWindow
*currentWindow
; // current window
38 GlutMenu
*currentMenu
; // current menu
40 GlutWindow
**windowList
; // array of pointers to windows
41 int windowListSize
; // size of window list
43 GLUTidleCB idle
; // idle callback
44 GLUTmenuStatusCB menuStatus
; // menu status callback
45 int modifierKeys
; // only valid during keyboard callback
47 bool debug
; // call glGetError
54 initWidth
= initHeight
= 300;
55 displayMode
= GLUT_RGB
| GLUT_SINGLE
| GLUT_DEPTH
;
64 debug
= quitAll
= false;
68 /***********************************************************
69 * Global variable (declared in glutInit.cpp)
70 ***********************************************************/
71 extern GlutState gState
;