summaryrefslogtreecommitdiffstats
path: root/graphics/Display.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--graphics/Display.hpp40
1 files changed, 21 insertions, 19 deletions
diff --git a/graphics/Display.hpp b/graphics/Display.hpp
index d6737ba..c656f2f 100644
--- a/graphics/Display.hpp
+++ b/graphics/Display.hpp
@@ -1,30 +1,32 @@
#pragma once
-#include <condition_variable>
-#include <GL/glew.h>
-#include <GLFW/glfw3.h>
+#include <SFML/Window.hpp>
#include "../World.hpp"
-
-template <class T>
-class CallbackHandler {
-
-};
+#include <glm/glm.hpp>
+#include <glm/gtc/matrix_transform.hpp>
+#include <glm/gtc/type_ptr.hpp>
+#include "Shader.hpp"
+#include "Texture.hpp"
+#include "Camera3D.hpp"
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);
+ sf::Window *window;
+ World* world;
+ std::vector<Section*> toRender;
public:
- Display(int w, int h, std::string title, World *worldPtr);
+ Display(unsigned int winWidth, unsigned int winHeight, const char winTitle[9], World *worldPtr);
+
+ bool IsClosed();
- ~Display();
+ void SetPlayerPos(double playerX, double playerY, double playerZ);
void MainLoop();
- bool IsClosed();
-
- void SetPlayerPos(float x, float y);
-};
+ unsigned int width() {
+ return window->getSize().x;
+ }
+ unsigned int height() {
+ return window->getSize().y;
+ }
+}; \ No newline at end of file