From 867daf817bba83ab22c5e04409c4afb1075dd158 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 4 Dec 2022 17:00:54 +0000 Subject: Support saving a depth texture --- gfx/models/texture.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gfx/models/texture.h') diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 09538b3..de532a5 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -19,7 +19,11 @@ public: void bind(GLenum unit = GL_TEXTURE0) 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); private: + static void save(const glTexture &, GLenum, const glm::ivec2 & size, unsigned short channels, const char * path, + short tgaFormat); + glTexture m_texture; }; -- cgit v1.2.3