Hyprland/src/render/Framebuffer.hpp
Vaxry 6967a31450
wayland/core: move to new impl (#6268)
* wayland/core/dmabuf: move to new impl

it's the final countdown
2024-06-08 10:07:59 +02:00

24 lines
No EOL
461 B
C++

#pragma once
#include "../defines.hpp"
#include "Texture.hpp"
class CFramebuffer {
public:
CFramebuffer();
~CFramebuffer();
bool alloc(int w, int h, uint32_t format = GL_RGBA);
void addStencil();
void bind();
void release();
void reset();
bool isAllocated();
Vector2D m_vSize;
SP<CTexture> m_cTex;
GLuint m_iFb = -1;
SP<CTexture> m_pStencilTex;
};