MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / DestroyDevice

Method DestroyDevice

olcPixelGameEngine.h:5412–5427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5410 }
5411
5412 olc::rcode DestroyDevice() override
5413 {
5414#if defined(OLC_PLATFORM_WINAPI)
5415 wglDeleteContext(glRenderContext);
5416#endif
5417
5418#if defined(OLC_PLATFORM_X11)
5419 glXMakeCurrent(olc_Display, None, NULL);
5420 glXDestroyContext(olc_Display, glDeviceContext);
5421#endif
5422
5423#if defined(OLC_PLATFORM_GLUT)
5424 glutDestroyWindow(glutGetWindow());
5425#endif
5426 return olc::rcode::OK;
5427 }
5428
5429 void DisplayFrame() override
5430 {

Callers 4

ThreadCleanUpMethod · 0.45
ThreadCleanUpMethod · 0.45
ThreadCleanUpMethod · 0.45
ThreadCleanUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected