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

Method DisplayFrame

olcPixelGameEngine.h:5429–5443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5427 }
5428
5429 void DisplayFrame() override
5430 {
5431#if defined(OLC_PLATFORM_WINAPI)
5432 SwapBuffers(glDeviceContext);
5433 if (bSync) DwmFlush(); // Woooohooooooo!!!! SMOOOOOOOTH!
5434#endif
5435
5436#if defined(OLC_PLATFORM_X11)
5437 X11::glXSwapBuffers(olc_Display, *olc_Window);
5438#endif
5439
5440#if defined(OLC_PLATFORM_GLUT)
5441 glutSwapBuffers();
5442#endif
5443 }
5444
5445 void PrepareDrawing() override
5446 {

Callers 2

SetScreenSizeMethod · 0.45
olc_CoreUpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected