summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorNarice <narice@tutanota.com>2022-05-16 11:53:28 +0100
committerGitHub <noreply@github.com>2022-05-16 11:53:28 +0100
commit23c3534197f54e2f74b791ce2a8857b25bbba259 (patch)
treec48e00553bb7027779b19e93a7f631a5f10eee98 /src/render/OpenGL.hpp
parent4f10d8e07dd330bf1c4ce9eebecc0db919e522d9 (diff)
parente991550abe8f4b13af586d635cdfec3b5c18fcd9 (diff)
Merge branch 'vaxerski:main' into main
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index 99de2a29..34b1a871 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -60,7 +60,9 @@ public:
void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0);
void makeWindowSnapshot(CWindow*);
+ void makeLayerSnapshot(SLayerSurface*);
void renderSnapshot(CWindow**);
+ void renderSnapshot(SLayerSurface**);
void clear(const CColor&);
void clearWithTex();
@@ -78,6 +80,7 @@ public:
pixman_region32_t m_rOriginalDamageRegion; // used for storing the pre-expanded region
std::unordered_map<CWindow*, CFramebuffer> m_mWindowFramebuffers;
+ std::unordered_map<SLayerSurface*, CFramebuffer> m_mLayerFramebuffers;
std::unordered_map<SMonitor*, SMonitorRenderData> m_mMonitorRenderResources;
std::unordered_map<SMonitor*, CTexture> m_mMonitorBGTextures;