mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-24 17:09:48 +01:00
6967a31450
* wayland/core/dmabuf: move to new impl it's the final countdown
24 lines
No EOL
461 B
C++
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;
|
|
}; |