From a49bbf450881581e27696405ebaefef63f7bde7a Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:49:15 +0200 Subject: =?UTF-8?q?fadeout=20done=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/render/Framebuffer.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/render/Framebuffer.hpp (limited to 'src/render/Framebuffer.hpp') diff --git a/src/render/Framebuffer.hpp b/src/render/Framebuffer.hpp new file mode 100644 index 00000000..5c76b9a6 --- /dev/null +++ b/src/render/Framebuffer.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "../defines.hpp" +#include "Texture.hpp" + +class CFramebuffer { +public: + + bool alloc(int w, int h); + void bind(); + void release(); + void reset(); + + Vector2D m_Position; + Vector2D m_Size; + float m_fScale = 1; + + CTexture m_cTex; + GLuint m_iFb = -1; + + wl_output_transform m_tTransform; // for saving state +}; \ No newline at end of file -- cgit v1.2.3