diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 17:52:09 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 17:52:09 +0000 |
| commit | 57817f7252e3acbe48620b6764a77fecb6bb0ec1 (patch) | |
| tree | 90235b12f926d50c0f3c1250e0aff8641f29614c /src/render/OpenGL.hpp | |
| parent | b4c45aa2e3af0e595a6276986290c78d11465746 (diff) | |
Added resize transitions
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index b62732f6..dbc2977c 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -83,6 +83,7 @@ public: void renderBorder(wlr_box*, const CColor&, int round); void makeWindowSnapshot(CWindow*); + void makeRawWindowSnapshot(CWindow*, CFramebuffer*); void makeLayerSnapshot(SLayerSurface*); void renderSnapshot(CWindow**); void renderSnapshot(SLayerSurface**); @@ -103,6 +104,9 @@ public: void saveBufferForMirror(); void renderMirrored(); + void onWindowResizeStart(CWindow*); + void onWindowResizeEnd(CWindow*); + SCurrentRenderData m_RenderData; GLint m_iCurrentOutputFb = 0; @@ -113,6 +117,7 @@ public: pixman_region32_t m_rOriginalDamageRegion; // used for storing the pre-expanded region std::unordered_map<CWindow*, CFramebuffer> m_mWindowFramebuffers; + std::unordered_map<CWindow*, CFramebuffer> m_mWindowResizeFramebuffers; std::unordered_map<SLayerSurface*, CFramebuffer> m_mLayerFramebuffers; std::unordered_map<CMonitor*, SMonitorRenderData> m_mMonitorRenderResources; std::unordered_map<CMonitor*, CTexture> m_mMonitorBGTextures; |
