renderer: Move to a full Hyprland GL rendering pipeline (#3920)

Also updates wlroots
This commit is contained in:
Vaxry 2023-11-24 10:54:21 +00:00 committed by GitHub
parent e40e486f61
commit 2ebfd0c745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 453 additions and 230 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include "Framebuffer.hpp"
class CMonitor;
class CRenderbuffer {
public:
CRenderbuffer(wlr_buffer* buffer, uint32_t format);
~CRenderbuffer();
void bind();
void bindFB();
void unbind();
CFramebuffer* getFB();
wlr_buffer* m_pWlrBuffer = nullptr;
DYNLISTENER(destroyBuffer);
private:
EGLImageKHR m_iImage = 0;
GLuint m_iRBO = 0;
CFramebuffer m_sFramebuffer;
};