aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/Image_asset.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-25 13:07:13 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-25 13:07:13 +0200
commit35224c07549448e919a18a463e5dec81bbabf7c6 (patch)
tree6c9dea5b449625b057511f7f052842ab3cd1d7e8 /resource-manager/Image_asset.h
parent765485ced528ca2f4cf644a1503b9446c5826731 (diff)
spritesheet and image changed
Diffstat (limited to 'resource-manager/Image_asset.h')
-rw-r--r--resource-manager/Image_asset.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/resource-manager/Image_asset.h b/resource-manager/Image_asset.h
index 8563352..88c0fb0 100644
--- a/resource-manager/Image_asset.h
+++ b/resource-manager/Image_asset.h
@@ -3,7 +3,7 @@
#include "resource.h"
-#include "spritesheet.h"
+#include <SDL_render.h>
#include <SDL_surface.h>
#include <string>
@@ -11,15 +11,18 @@
-class Image : public Resource {
+class Texture : public Resource {
public:
- Image(const std::string& path);
- ~Image();
+ Texture(const std::string& path);
+ ~Texture();
+ void setTexture(SDL_Renderer& renderer);
SDL_Surface* getSurface() const;
+ SDL_Texture* getTexture() const;
private:
- SDL_Surface* surface;
+ SDL_Surface* m_surface;
+ SDL_Texture* m_texture;
};