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

Method CreateGraphics

olcPixelGameEngine.h:7324–7333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7322 }
7323
7324 virtual olc::rcode CreateGraphics(bool bFullScreen, bool bEnableVSYNC, const olc::vi2d& vViewPos, const olc::vi2d& vViewSize) override
7325 {
7326 if (renderer->CreateDevice({}, bFullScreen, bEnableVSYNC) == olc::rcode::OK)
7327 {
7328 renderer->UpdateViewport(vViewPos, vViewSize);
7329 return olc::rcode::OK;
7330 }
7331 else
7332 return olc::rcode::FAIL;
7333 }
7334
7335 static void ExitMainLoop() {
7336 if (!ptrPGE->OnUserDestroy()) {

Callers 1

olc_PrepareEngineMethod · 0.45

Calls 2

CreateDeviceMethod · 0.45
UpdateViewportMethod · 0.45

Tested by

no test coverage detected