core: Add clang-tidy (#8664)
This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
This commit is contained in:
parent
b1e5cc66bd
commit
8bbeee1173
118 changed files with 720 additions and 679 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue