mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 17:25:58 +01:00
016da234d0
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
35 lines
No EOL
870 B
C++
35 lines
No EOL
870 B
C++
#pragma once
|
|
|
|
#include "../helpers/signal/Signal.hpp"
|
|
#include "../helpers/memory/Memory.hpp"
|
|
#include "../helpers/WLListener.hpp"
|
|
#include "Framebuffer.hpp"
|
|
#include <aquamarine/buffer/Buffer.hpp>
|
|
|
|
class CMonitor;
|
|
|
|
class CRenderbuffer {
|
|
public:
|
|
CRenderbuffer(SP<Aquamarine::IBuffer> buffer, uint32_t format);
|
|
~CRenderbuffer();
|
|
|
|
bool good();
|
|
void bind();
|
|
void bindFB();
|
|
void unbind();
|
|
CFramebuffer* getFB();
|
|
uint32_t getFormat();
|
|
|
|
WP<Aquamarine::IBuffer> m_pHLBuffer;
|
|
|
|
private:
|
|
void* m_iImage = nullptr;
|
|
GLuint m_iRBO = 0;
|
|
CFramebuffer m_sFramebuffer;
|
|
uint32_t m_uDrmFormat = 0;
|
|
bool m_bGood = false;
|
|
|
|
struct {
|
|
CHyprSignalListener destroyBuffer;
|
|
} listeners;
|
|
}; |