From 3753f83f69597325ad0dc88dbc70e0e9a483e2d4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 10 Apr 2022 14:32:18 +0200 Subject: Added default background as a PNG --- src/render/OpenGL.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index bc2c6d88..f18e48af 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -47,6 +47,7 @@ public: void renderSnapshot(CWindow**); void clear(const CColor&); + void clearWithTex(); void scissor(const wlr_box*); SCurrentRenderData m_RenderData; @@ -56,6 +57,7 @@ public: std::unordered_map m_mWindowFramebuffers; std::unordered_map m_mMonitorFramebuffers; + std::unordered_map m_mMonitorBGTextures; private: std::list m_lBuffers; @@ -75,6 +77,7 @@ private: GLuint createProgram(const std::string&, const std::string&); GLuint compileShader(const GLuint&, std::string); + void createBGTextureForMonitor(SMonitor*); }; inline std::unique_ptr g_pHyprOpenGL; \ No newline at end of file -- cgit v1.2.3