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

Method CreateGraphics

olcPixelGameEngine.h:7034–7043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7032 }
7033
7034 virtual olc::rcode CreateGraphics(bool bFullScreen, bool bEnableVSYNC, const olc::vi2d& vViewPos, const olc::vi2d& vViewSize) override
7035 {
7036 if (renderer->CreateDevice({ olc_Display, &olc_Window, olc_VisualInfo }, bFullScreen, bEnableVSYNC) == olc::rcode::OK)
7037 {
7038 renderer->UpdateViewport(vViewPos, vViewSize);
7039 return olc::rcode::OK;
7040 }
7041 else
7042 return olc::rcode::FAIL;
7043 }
7044
7045 virtual olc::rcode CreateWindowPane(const olc::vi2d& vWindowPos, olc::vi2d& vWindowSize, bool bFullScreen) override
7046 {

Callers

nothing calls this directly

Calls 2

CreateDeviceMethod · 0.45
UpdateViewportMethod · 0.45

Tested by

no test coverage detected