Add ecs ComponentListener
- Add ecs ComponentListener which listens to Component addition and removal - Add RefCounter class used to keep track of moves and copies
This commit is contained in:
@@ -77,7 +77,7 @@ namespace Copium
|
||||
Vulkan::GetSwapChain().SubmitToGraphicsQueue(*commandBuffer);
|
||||
|
||||
Vulkan::GetSwapChain().EndPresent();
|
||||
return !glfwWindowShouldClose(Vulkan::GetWindow().GetWindow());
|
||||
return !Vulkan::GetWindow().ShouldClose();
|
||||
}
|
||||
|
||||
EventResult Application::OnEvent(const Event& event)
|
||||
@@ -100,13 +100,6 @@ namespace Copium
|
||||
|
||||
return EventResult::Focus;
|
||||
}
|
||||
case EventType::KeyPress:
|
||||
{
|
||||
const KeyPressEvent& keyPressEvent = static_cast<const KeyPressEvent&>(event);
|
||||
CP_INFO("%d", keyPressEvent.GetButton());
|
||||
|
||||
return EventResult::Handled;
|
||||
}
|
||||
case EventType::MouseScroll:
|
||||
{
|
||||
const MouseScrollEvent& mouseScrollEvent = static_cast<const MouseScrollEvent&>(event);
|
||||
|
||||
Reference in New Issue
Block a user