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

Method CreateGraphics

olcPixelGameEngine.h:7664–7673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7662 }
7663
7664 virtual olc::rcode CreateGraphics(bool bFullScreen, bool bEnableVSYNC, const olc::vi2d& vViewPos, const olc::vi2d& vViewSize) override
7665 {
7666 if (renderer->CreateDevice({}, bFullScreen, bEnableVSYNC) == olc::rcode::OK)
7667 {
7668 renderer->UpdateViewport(vViewPos, vViewSize);
7669 return olc::rcode::OK;
7670 }
7671 else
7672 return olc::rcode::FAIL;
7673 }
7674
7675 virtual olc::rcode CreateWindowPane(const olc::vi2d& vWindowPos, olc::vi2d& vWindowSize, bool bFullScreen) override
7676 {

Callers

nothing calls this directly

Calls 2

CreateDeviceMethod · 0.45
UpdateViewportMethod · 0.45

Tested by

no test coverage detected