From b5c7b4a162a780980b3ecacf0edd49541888a0a8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 24 Sep 2014 02:27:30 +0200 Subject: Move more SDL-specific things to the view --- src/view/MapView.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/view/MapView.hpp') 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 #include +#include namespace RPGEdit { @@ -41,8 +42,9 @@ class MapView { private: std::shared_ptr window; std::shared_ptr map; - SDL_Texture *tileTexture; - std::map entityTextures; + + SDL_Texture *tiles; + std::map entities; int getTileSize() { return 32; @@ -50,9 +52,7 @@ private: public: MapView(const std::shared_ptr &window0, - const std::shared_ptr &map0, - const std::vector &tiles, - const std::map &entities); + const std::shared_ptr &map0); ~MapView(); void render(float centerX, float centerY, uint64_t time); -- cgit v1.2.3