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/OpenGL.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 43fa6c6c..7d938c15 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -5,10 +5,12 @@ #include "../helpers/Color.hpp" #include #include +#include #include "Shaders.hpp" #include "Shader.hpp" #include "Texture.hpp" +#include "Framebuffer.hpp" inline const float matrixFlip180[] = { 1.0f, 0.0f, 0.0f, @@ -40,11 +42,18 @@ public: void renderTexture(const CTexture&, float matrix[9], float a, int round = 0); void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0); + void makeWindowSnapshot(CWindow*); + void renderSnapshot(CWindow**); + void clear(const CColor&); void scissor(const wlr_box*); SCurrentRenderData m_RenderData; + GLint m_iCurrentOutputFb = 0; + + std::unordered_map m_mWindowFramebuffers; + private: std::list m_lBuffers; std::list m_lTextures; -- cgit v1.2.3