summaryrefslogtreecommitdiffstats
path: root/Display.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Display.hpp')
-rw-r--r--Display.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Display.hpp b/Display.hpp
new file mode 100644
index 0000000..bb1f946
--- /dev/null
+++ b/Display.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <SFML/Graphics.hpp>
+#include "World.hpp"
+
+class Display {
+ sf::RenderWindow *window;
+ World* world;
+public:
+ Display(int w=1280,int h=720,std::string title="AltCraft");
+ ~Display();
+ void SetWorld(World* wrd);
+ void Update();
+ bool IsClosed();
+ void SetPlayerPos(float x, float z);
+};
+