| 4669 | } |
| 4670 | |
| 4671 | void PixelGameEngine::olc_PrepareEngine() |
| 4672 | { |
| 4673 | // Start OpenGL, the context is owned by the game thread |
| 4674 | if (platform->CreateGraphics(bFullScreen, bEnableVSYNC, vViewPos, vViewSize) == olc::FAIL) return; |
| 4675 | |
| 4676 | // Construct default font sheet |
| 4677 | olc_ConstructFontSheet(); |
| 4678 | |
| 4679 | // Create Primary Layer "0" |
| 4680 | CreateLayer(); |
| 4681 | vLayers[0].bUpdate = true; |
| 4682 | vLayers[0].bShow = true; |
| 4683 | SetDrawTarget(nullptr); |
| 4684 | |
| 4685 | m_tp1 = std::chrono::system_clock::now(); |
| 4686 | m_tp2 = std::chrono::system_clock::now(); |
| 4687 | } |
| 4688 | |
| 4689 | |
| 4690 | void PixelGameEngine::adv_ManualRenderEnable(const bool bEnable) |
nothing calls this directly
no test coverage detected