MCPcopy Create free account
hub / github.com/Illation/ETEngine / MainLoop

Method MainLoop

Engine/source/EtRuntime/AbstractFramework.cpp:177–199  ·  view source on GitHub ↗

----------------------------- AbstractFramework::MainLoop Main update entry point

Source from the content-addressed store, hash-verified

175// Main update entry point
176//
177void AbstractFramework::MainLoop()
178{
179 while (true)
180 {
181 if (!(core::InputManager::GetInstance()->IsRunning()))
182 {
183 return;
184 }
185 TriggerTick(); // this will probably tick the scene manager, editor, framework etc
186
187 //****
188 //DRAW
189
190 fw::EcsController& ecs = fw::UnifiedScene::Instance().GetEcs();
191 fw::T_EntityId cam = fw::UnifiedScene::Instance().GetActiveCamera();
192
193 ecs.GetComponent<fw::CameraComponent>(cam).PopulateCamera(m_SceneRenderer->GetCamera(),
194 *m_Viewport,
195 ecs.GetComponent<fw::TransformComponent>(cam));
196
197 m_RenderArea.Update();
198 }
199}
200
201
202} // namespace rt

Callers

nothing calls this directly

Calls 4

IsRunningMethod · 0.80
GetActiveCameraMethod · 0.80
PopulateCameraMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected