diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-24 02:27:30 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-24 02:27:30 +0200 |
commit | b5c7b4a162a780980b3ecacf0edd49541888a0a8 (patch) | |
tree | a401b50e2e8071fc6aec6b5392997b902e1b721d /src/view/MapView.hpp | |
parent | ea8840291cdf66784c6a2cb465b63ccfb5483c38 (diff) | |
download | rpgedit-b5c7b4a162a780980b3ecacf0edd49541888a0a8.tar rpgedit-b5c7b4a162a780980b3ecacf0edd49541888a0a8.zip |
Move more SDL-specific things to the view
Diffstat (limited to 'src/view/MapView.hpp')
-rw-r--r-- | src/view/MapView.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/view/MapView.hpp b/src/view/MapView.hpp index 7f83006..e764297 100644 --- a/src/view/MapView.hpp +++ b/src/view/MapView.hpp @@ -31,6 +31,7 @@ #include <cmath> #include <map> +#include <unordered_set> namespace RPGEdit { @@ -41,8 +42,9 @@ class MapView { private: std::shared_ptr<Window> window; std::shared_ptr<const Model::Map> map; - SDL_Texture *tileTexture; - std::map<std::string, SDL_Texture *> entityTextures; + + SDL_Texture *tiles; + std::map<std::string, SDL_Texture *> entities; int getTileSize() { return 32; @@ -50,9 +52,7 @@ private: public: MapView(const std::shared_ptr<Window> &window0, - const std::shared_ptr<const Model::Map> &map0, - const std::vector<SDL_Surface *> &tiles, - const std::map<std::string, SDL_Surface *> &entities); + const std::shared_ptr<const Model::Map> &map0); ~MapView(); void render(float centerX, float centerY, uint64_t time); |