summaryrefslogtreecommitdiffstats
path: root/src/view/Window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/Window.hpp')
-rw-r--r--src/view/Window.hpp8
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;
}