summaryrefslogtreecommitdiff
path: root/gfx/models/texture.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-14 00:41:34 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-14 00:41:34 +0100
commit29779c7e599612727a1b2119a7e556d181dba6b1 (patch)
treee3fddd9a68963793a12412ac2912d5b686e68ec3 /gfx/models/texture.h
parentAllow creating a texture directly from an Image (diff)
downloadilt-29779c7e599612727a1b2119a7e556d181dba6b1.tar.bz2
ilt-29779c7e599612727a1b2119a7e556d181dba6b1.tar.xz
ilt-29779c7e599612727a1b2119a7e556d181dba6b1.zip
Allow creating a texture directly from an dimensions and pixel data
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r--gfx/models/texture.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/models/texture.h b/gfx/models/texture.h
index 8f93a42..7948a58 100644
--- a/gfx/models/texture.h
+++ b/gfx/models/texture.h
@@ -11,6 +11,7 @@ class Texture {
public:
explicit Texture(const std::filesystem::path & fileName);
explicit Texture(const Image & image);
+ explicit Texture(GLsizei width, GLsizei height, void * data);
static Cache<Texture, std::filesystem::path> cachedTexture;