summaryrefslogtreecommitdiff
path: root/gfx/models/texture.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-15 02:08:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-15 02:08:43 +0000
commit5d7bb934068b0f2ce8b6315517a005cc2c1305f5 (patch)
treecbe2ae7d51e6ea9c03b50998d19210ca016d0173 /gfx/models/texture.h
parentAdd support for setting Texture options on construction (diff)
downloadilt-5d7bb934068b0f2ce8b6315517a005cc2c1305f5.tar.bz2
ilt-5d7bb934068b0f2ce8b6315517a005cc2c1305f5.tar.xz
ilt-5d7bb934068b0f2ce8b6315517a005cc2c1305f5.zip
Texture member to save the texture as a TGA
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 31ffaa5..cc0c07e 100644
--- a/gfx/models/texture.h
+++ b/gfx/models/texture.h
@@ -24,6 +24,7 @@ public:
void bind(GLenum unit = GL_TEXTURE0) const;
+ void save(const glm::ivec2 & size, const char * path) const;
static void save(const glTexture &, const glm::ivec2 & size, const char * path);
static void saveDepth(const glTexture &, const glm::ivec2 & size, const char * path);
static void saveNormal(const glTexture &, const glm::ivec2 & size, const char * path);