| 38 | }; |
| 39 | |
| 40 | class GLWindow |
| 41 | { |
| 42 | public: |
| 43 | SDL_Window *window; |
| 44 | SDL_GLContext glContext; |
| 45 | VideoMode videoModes[NUM_MODES]; |
| 46 | VideoMode virtualModes[NUM_MODES]; |
| 47 | int borderWidth; |
| 48 | int borderHeight; |
| 49 | Point windowPosition; |
| 50 | int windowedMode; |
| 51 | int fullscreenMode; |
| 52 | int scaleMode; |
| 53 | bool isActive; |
| 54 | bool isFullscreen; |
| 55 | float scaleValue; |
| 56 | |
| 57 | GLWindow (); |
| 58 | ~GLWindow (); |
| 59 | |
| 60 | void |
| 61 | initialize (); |
| 62 | void |
| 63 | destroyGLWindow (); |
| 64 | void |
| 65 | destroyGL (); |
| 66 | bool |
| 67 | initGL (int bits); |
| 68 | bool |
| 69 | createGLWindow (const char *title); |
| 70 | void |
| 71 | createGLWindow (bool togglefullscreen); |
| 72 | int |
| 73 | currentWidth (); |
| 74 | int |
| 75 | currentHeight (); |
| 76 | int |
| 77 | currentMode (); |
| 78 | void |
| 79 | computeScale (); |
| 80 | }; |
| 81 | |
| 82 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected