Started implementation of first event/message passing system
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user