MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / GLWindow

Class GLWindow

engine/src/program.h:40–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40class GLWindow
41{
42public:
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected