summaryrefslogtreecommitdiff
path: root/src/render/Texture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Texture.hpp')
-rw-r--r--src/render/Texture.hpp21
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