From 2ee0f834487cfe4b6bd9424ca2715685a8db16e4 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 15 Apr 2017 15:17:53 +0500 Subject: 2017-04-15 --- Display.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Display.hpp (limited to 'Display.hpp') 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 +#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); +}; + -- cgit v1.2.3