mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 13:26:00 +01:00
21 lines
452 B
C++
21 lines
452 B
C++
|
#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;
|
||
|
};
|