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

Method CreateGraphics

olcPixelGameEngine.h:6724–6733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6722 }
6723
6724 virtual olc::rcode CreateGraphics(bool bFullScreen, bool bEnableVSYNC, const olc::vi2d& vViewPos, const olc::vi2d& vViewSize) override
6725 {
6726 if (renderer->CreateDevice({ olc_hWnd }, bFullScreen, bEnableVSYNC) == olc::rcode::OK)
6727 {
6728 renderer->UpdateViewport(vViewPos, vViewSize);
6729 return olc::rcode::OK;
6730 }
6731 else
6732 return olc::rcode::FAIL;
6733 }
6734
6735 virtual olc::rcode CreateWindowPane(const olc::vi2d& vWindowPos, olc::vi2d& vWindowSize, bool bFullScreen) override
6736 {

Callers

nothing calls this directly

Calls 2

CreateDeviceMethod · 0.45
UpdateViewportMethod · 0.45

Tested by

no test coverage detected