summaryrefslogtreecommitdiff
path: root/src/FLD.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/FLD.hpp')
-rw-r--r--src/FLD.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/FLD.hpp b/src/FLD.hpp
index 5cfd0cb..9abe34a 100644
--- a/src/FLD.hpp
+++ b/src/FLD.hpp
@@ -49,6 +49,10 @@ public:
};
struct Image {
bool valid = true;
+ SDL_Texture *ptr = nullptr;
+ int width = 0;
+ int height = 0;
+
Error invalid() const;
Error draw(const DrawImageOpts& opts) const;
};
@@ -107,7 +111,7 @@ private:
} transform;
std::map<const std::string, Image> images = {};
- Error sdlError() const;
+ Error sdlError(const std::string& msg="") const;
[[nodiscard]] Error initBasepath() const;
[[nodiscard]] Error initWindow();
[[nodiscard]] Error initRenderer();