MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / OnEvent

Method OnEvent

ZEngine/src/GraphicScene.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {

Callers 1

ForwardEventToLayersMethod · 0.45

Calls 1

GetCameraControllerMethod · 0.80

Tested by

no test coverage detected