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.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/render/Texture.hpp b/src/render/Texture.hpp
index ae949d5f..60134707 100644
--- a/src/render/Texture.hpp
+++ b/src/render/Texture.hpp
@@ -6,13 +6,12 @@
class IHLBuffer;
HYPRUTILS_FORWARD(Math, CRegion);
-using namespace Hyprutils::Math;
-enum TEXTURETYPE {
- TEXTURE_INVALID, // Invalid
- TEXTURE_RGBA, // 4 channels
- TEXTURE_RGBX, // discard A
- TEXTURE_EXTERNAL, // EGLImage
+enum eTextureType : int8_t {
+ TEXTURE_INVALID = -1, // Invalid
+ TEXTURE_RGBA = 0, // 4 channels
+ TEXTURE_RGBX, // discard A
+ TEXTURE_EXTERNAL, // EGLImage
};
class CTexture {
@@ -36,7 +35,7 @@ class CTexture {
void update(uint32_t drmFormat, uint8_t* pixels, uint32_t stride, const CRegion& damage);
const std::vector<uint8_t>& dataCopy();
- TEXTURETYPE m_iType = TEXTURE_RGBA;
+ eTextureType m_iType = TEXTURE_RGBA;
GLenum m_iTarget = GL_TEXTURE_2D;
GLuint m_iTexID = 0;
Vector2D m_vSize = {};