blob: d6737bab4ff0e0d0b27d3791551f7791ad51c4fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include <condition_variable>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "../World.hpp"
template <class T>
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);
};
|