Create OpenGL context

This commit is contained in:
Derek Christ
2020-08-31 00:56:04 +02:00
parent cab3b9272d
commit 22eca24033
13 changed files with 261 additions and 11 deletions

10
EventHandler.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include "EventHandler.h"
void EventHandler::handleEvents(GLFWwindow *window) {
glfwPollEvents();
gameShouldTerminate = glfwWindowShouldClose(window);
if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
glfwSetWindowShouldClose(window, true);
}