----------------------------- AbstractFramework::MainLoop Main update entry point
| 175 | // Main update entry point |
| 176 | // |
| 177 | void 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 |
nothing calls this directly
no test coverage detected