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

Method destroyGLWindow

engine/src/program.cpp:106–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void
107GLWindow::destroyGLWindow ()
108{
109 destroyGL ();
110
111 if (glContext)
112 {
113 SDL_GL_DeleteContext (glContext);
114 glContext = nullptr;
115 }
116
117 if (window)
118 {
119 SDL_DestroyWindow (window);
120 window = nullptr;
121 }
122}
123
124void
125GLWindow::destroyGL ()

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected