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.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;
};