diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 20:49:15 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 20:49:15 +0200 |
| commit | a49bbf450881581e27696405ebaefef63f7bde7a (patch) | |
| tree | 2c5cd3ecc24b9138f5f8f087350fe9e71a6b6e90 /src/render/OpenGL.hpp | |
| parent | f8e0b0b448b8b68f65ee1c3eebdd4eb3e3382138 (diff) | |
fadeout done 🎉
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <wlr/render/egl.h> #include <list> +#include <unordered_map> #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<CWindow*, CFramebuffer> m_mWindowFramebuffers; + private: std::list<GLuint> m_lBuffers; std::list<GLuint> m_lTextures; |
