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:
@@ -3,11 +3,17 @@
|
||||
#include "copium/util/Common.h"
|
||||
#include "copium/util/Enum.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
#define CP_WINDOW_MODE_ENUMS \
|
||||
Fullscreen, \
|
||||
BorderlessWindowed, \
|
||||
Windowed
|
||||
|
||||
#define CP_WINDOW_MODE_ENUMS Fullscreen, BorderlessWindowed, Windowed
|
||||
CP_ENUM_CREATOR(Copium, WindowMode, CP_WINDOW_MODE_ENUMS);
|
||||
|
||||
struct GLFWwindow;
|
||||
|
||||
namespace Copium
|
||||
{
|
||||
class Window final
|
||||
@@ -24,6 +30,10 @@ namespace Copium
|
||||
Window(const std::string& windowName, int width, int height, WindowMode mode);
|
||||
~Window();
|
||||
|
||||
bool ShouldClose() const;
|
||||
|
||||
int GetWidth() const;
|
||||
int GetHeight() const;
|
||||
VkSurfaceKHR GetSurface() const;
|
||||
GLFWwindow* GetWindow();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user