From 469a84c10ba60fba4a513c1b1a0eea600cd7b22f Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 10 May 2017 18:44:51 +0500 Subject: 2017-05-10 --- graphics/Display.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 graphics/Display.hpp (limited to 'graphics/Display.hpp') diff --git a/graphics/Display.hpp b/graphics/Display.hpp new file mode 100644 index 0000000..d6737ba --- /dev/null +++ b/graphics/Display.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include +#include +#include +#include "../World.hpp" + +template +class CallbackHandler { + +}; + +class Display { + World *world; + GLFWwindow *window; + static Display *instance; + //glfw callbacks + static void callback_key(GLFWwindow *window, int key, int scancode, int action, int mode); +public: + Display(int w, int h, std::string title, World *worldPtr); + + ~Display(); + + void MainLoop(); + + bool IsClosed(); + + void SetPlayerPos(float x, float y); +}; + -- cgit v1.2.3