Started implementation of first event/message passing system

This commit is contained in:
2022-06-10 22:44:40 +02:00
parent 4df6cfba90
commit 85f9c78adf
11 changed files with 140 additions and 12 deletions

View File

@ -3,12 +3,13 @@
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "../Include/EventSystem/EventListener.h"
class BarinkWindow{
class BarinkWindow : EventListener {
private:
GLFWwindow* window;
bool FullScreen;
@ -18,12 +19,15 @@ class BarinkWindow{
static bool InitGLFW();
public:
BarinkWindow(const int width, const int height);
~BarinkWindow();
GLFWwindow* windowptr();
void ReceiveEvent(Event& incident) override;
bool WindowShouldClose();
void Poll();