mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 21:46:00 +01:00
2ebfd0c745
Also updates wlroots
25 lines
No EOL
464 B
C++
25 lines
No EOL
464 B
C++
#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;
|
|
}; |