diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 14:33:54 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 14:33:54 +0200 |
| commit | 19d946504239e3df1b8afb26d2053fb80dfff19e (patch) | |
| tree | df6bfa779d887b43824e519b82702b512e8d1c13 /src/render/Texture.hpp | |
| parent | 67343898ff881bbbc767025a033005f45db32a09 (diff) | |
Rendering textures
Diffstat (limited to 'src/render/Texture.hpp')
| -rw-r--r-- | src/render/Texture.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/render/Texture.hpp b/src/render/Texture.hpp new file mode 100644 index 00000000..dbdf715a --- /dev/null +++ b/src/render/Texture.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "../defines.hpp" + +enum TEXTURETYPE { + TEXTURE_INVALID, // Invalid + TEXTURE_RGBA, // 4 channels + TEXTURE_RGBX, // discard A + TEXTURE_EXTERNAL, // EGLImage +}; + +class CTexture { +public: + CTexture(); + CTexture(wlr_texture*); + + TEXTURETYPE m_iType = TEXTURE_RGBA; + GLenum m_iTarget = GL_TEXTURE_2D; + GLuint m_iTexID = 0; + Vector2D m_vSize; +};
\ No newline at end of file |
