summaryrefslogtreecommitdiff
path: root/gfx/image.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 18:36:53 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 18:36:53 +0100
commit9aa09c55b0af4b8c4c14a4ac50fcb21f7eba492d (patch)
tree401ca6f622182b26bfffe4114ced625a431d5fc0 /gfx/image.h
parentPlants are world objects (diff)
downloadilt-9aa09c55b0af4b8c4c14a4ac50fcb21f7eba492d.tar.bz2
ilt-9aa09c55b0af4b8c4c14a4ac50fcb21f7eba492d.tar.xz
ilt-9aa09c55b0af4b8c4c14a4ac50fcb21f7eba492d.zip
Support loading textures from an in memory buffer
Diffstat (limited to 'gfx/image.h')
-rw-r--r--gfx/image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/image.h b/gfx/image.h
index 47437ca..97c2731 100644
--- a/gfx/image.h
+++ b/gfx/image.h
@@ -8,6 +8,7 @@ class Image {
public:
Image(const char * fileName, int flags);
Image(const std::string & fileName, int flags) : Image(fileName.c_str(), flags) { }
+ Image(std::span<unsigned char> data, int flags);
~Image();
NO_COPY(Image);