diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-09-22 10:58:21 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-09-22 10:58:21 +0200 |
commit | 765485ced528ca2f4cf644a1503b9446c5826731 (patch) | |
tree | e9d35c04a8768afb38873daa31d1b47a3da93e54 /resource-manager/Image_asset.h | |
parent | 507a97739726feb74ffa91e317ead1773183ccbf (diff) |
spritesheet werkt
Diffstat (limited to 'resource-manager/Image_asset.h')
-rw-r--r-- | resource-manager/Image_asset.h | 10 |
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; }; + |