aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/Image_asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'resource-manager/Image_asset.h')
-rw-r--r--resource-manager/Image_asset.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/resource-manager/Image_asset.h b/resource-manager/Image_asset.h
index e7d13e9..8563352 100644
--- a/resource-manager/Image_asset.h
+++ b/resource-manager/Image_asset.h
@@ -3,7 +3,9 @@
#include "resource.h"
+#include "spritesheet.h"
#include <SDL_surface.h>
+#include <string>
@@ -12,8 +14,12 @@
class Image : public Resource {
public:
- SDL_Surface* surface = nullptr;
-
+ Image(const std::string& path);
~Image();
+ SDL_Surface* getSurface() const;
+
+private:
+ SDL_Surface* surface;
};
+