summaryrefslogtreecommitdiff
path: root/gfx/models/texture.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-16 23:21:25 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-16 23:21:25 +0000
commit393eba5f9f72fdec566b1d6771d40916793c2bc1 (patch)
treefdd342d5f5b5ea153df75a669d841985b8f1e527 /gfx/models/texture.h
parentPopulate super texture with fragments (diff)
downloadilt-393eba5f9f72fdec566b1d6771d40916793c2bc1.tar.bz2
ilt-393eba5f9f72fdec566b1d6771d40916793c2bc1.tar.xz
ilt-393eba5f9f72fdec566b1d6771d40916793c2bc1.zip
Allow specifiying the texture type/target
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r--gfx/models/texture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/models/texture.h b/gfx/models/texture.h
index cc0c07e..ffc9a4a 100644
--- a/gfx/models/texture.h
+++ b/gfx/models/texture.h
@@ -11,6 +11,7 @@ class Image;
struct TextureOptions {
GLint wrap {GL_REPEAT};
GLint minFilter {GL_LINEAR}, magFilter {GL_LINEAR};
+ GLenum type {GL_TEXTURE_2D};
};
class Texture {
@@ -34,4 +35,5 @@ private:
const char * path, short tgaFormat);
glTexture m_texture;
+ GLenum type;
};