| 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()) { |
no test coverage detected