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:
@@ -12,6 +12,8 @@
|
||||
#include "copium/event/WindowResizeEvent.h"
|
||||
#include "copium/event/WindowFocusEvent.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace Copium
|
||||
{
|
||||
Window::Window(const std::string& windowName, int width, int height, WindowMode mode)
|
||||
@@ -27,6 +29,22 @@ namespace Copium
|
||||
glfwDestroyWindow(window);
|
||||
}
|
||||
|
||||
bool Window::ShouldClose() const
|
||||
{
|
||||
return glfwWindowShouldClose(window);
|
||||
|
||||
}
|
||||
|
||||
int Window::GetWidth() const
|
||||
{
|
||||
return width;
|
||||
}
|
||||
|
||||
int Window::GetHeight() const
|
||||
{
|
||||
return height;
|
||||
}
|
||||
|
||||
VkSurfaceKHR Window::GetSurface() const
|
||||
{
|
||||
return surface;
|
||||
|
||||
Reference in New Issue
Block a user