| 49 | } |
| 50 | |
| 51 | bool GraphicScene::OnEvent(Event::CoreEvent& e) { |
| 52 | m_entity_registry->view<CameraComponent>().each([&](CameraComponent& component) { |
| 53 | if (component.IsPrimaryCamera) { |
| 54 | component.GetCameraController()->OnEvent(e); |
| 55 | } |
| 56 | }); |
| 57 | return false; |
| 58 | } |
| 59 | |
| 60 | void GraphicScene::RequestNewSize(float width, float height) { |
| 61 | if ((width > 0.0f) && (height > 0.0f)) { |
no test coverage detected