2 * Copyright 2010, Haiku Inc.
4 * Philippe Houdoin <phoudoin %at% haiku-os %dot% org>
6 * Distributed under the terms of the MIT License.
8 #ifndef GLUT_GAME_MODE_H
9 #define GLUT_GAME_MODE_H
15 /*! All information needed for game mode and
16 subwindows (handled as similarly as possible).
21 virtual ~GlutGameMode();
23 status_t
Set(const char* modeString
);
28 bool IsActive() const { return fActive
; }
30 bool HasDisplayChanged() const { return fDisplayChanged
; }
32 int Width() const { return fWidth
; }
33 int Height() const { return fHeight
; }
34 int PixelDepth() const { return fPixelDepth
; }
35 int RefreshRate() const { return fRefreshRate
; }
38 display_mode
* _FindMatchingMode();
40 static int _CompareModes(const void* mode1
, const void* mode2
);
41 static int _GetModeRefreshRate(const display_mode
* mode
);
42 static int _GetModePixelDepth(const display_mode
* mode
);
50 display_mode
* fModesList
;
52 display_mode fOriginalMode
;
53 int fGameModeWorkspace
;
54 display_mode fCurrentMode
;
60 #endif // GLUT_GAME_MODE_H