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

@ -1,9 +1,10 @@
#include "Graphics/Window.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <GLFW/glfw3.h>
#include <spdlog/spdlog.h>
#include "../Include/EventSystem/Event.h"
bool BarinkWindow::InitGLFW(){
if(!glfwInit())
@ -73,4 +74,11 @@ void BarinkWindow::Poll()
void BarinkWindow::SwapBuffers()
{
glfwSwapBuffers(window);
}
void BarinkWindow::ReceiveEvent(Event& incident)
{
std::cout << "EVENT RECEIVED: " << incident.name << std::endl;
}