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

Method olc_PrepareEngine

olcPixelGameEngine.h:4671–4687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

CreateGraphicsMethod · 0.45

Tested by

no test coverage detected