summaryrefslogblamecommitdiffstats
path: root/Display.hpp
blob: bb1f9463fce9fa1060ebbe08478832f8548e2f39 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
};