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/Window.hpp | |
parent | ea8840291cdf66784c6a2cb465b63ccfb5483c38 (diff) | |
download | rpgedit-b5c7b4a162a780980b3ecacf0edd49541888a0a8.tar rpgedit-b5c7b4a162a780980b3ecacf0edd49541888a0a8.zip |
Move more SDL-specific things to the view
Diffstat (limited to 'src/view/Window.hpp')
-rw-r--r-- | src/view/Window.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/view/Window.hpp b/src/view/Window.hpp index f53a9a0..8c4c7a7 100644 --- a/src/view/Window.hpp +++ b/src/view/Window.hpp @@ -26,6 +26,8 @@ #pragma once +#include "SpriteCache.hpp" + #include <utility> #include <SDL.h> @@ -37,6 +39,8 @@ namespace View { class Window { private: + SpriteCache spriteCache; + SDL_Window *window; SDL_Renderer *renderer; @@ -51,6 +55,10 @@ public: SDL_DestroyWindow(window); } + SpriteCache * getSpriteCache() { + return &spriteCache; + } + SDL_Renderer * getRenderer() { return renderer; } |