diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 01:54:19 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 01:54:19 +0100 |
commit | 0638aaaf2a60efae95a1b404d7eee29e894047bc (patch) | |
tree | cf66983319dfde55c6f34e279d1260744ea843d9 /gfx/models/texture.h | |
parent | Extend timeout... this can be a bit slow now (diff) | |
download | ilt-0638aaaf2a60efae95a1b404d7eee29e894047bc.tar.bz2 ilt-0638aaaf2a60efae95a1b404d7eee29e894047bc.tar.xz ilt-0638aaaf2a60efae95a1b404d7eee29e894047bc.zip |
No need to pass size around, we can get it back from the texture
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r-- | gfx/models/texture.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 7900f17..f4e1476 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -28,14 +28,14 @@ public: virtual 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);
+ void save(const char * path) const;
+ static void save(const glTexture &, const char * path);
+ static void saveDepth(const glTexture &, const char * path);
+ static void saveNormal(const glTexture &, const char * path);
protected:
- static void save(const glTexture &, GLenum, GLenum, const glm::ivec2 & size, unsigned short channels,
- const char * path, short tgaFormat);
+ static void save(const glTexture &, GLenum, GLenum, unsigned short channels, const char * path, short tgaFormat);
+ static glm::ivec2 getSize(const glTexture &);
glTexture m_texture;
GLenum type;
|