diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-10 14:32:18 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-10 14:32:18 +0200 |
| commit | 3753f83f69597325ad0dc88dbc70e0e9a483e2d4 (patch) | |
| tree | 8597feeb36f9989c2cd2e1032f0492b3297a1a99 /src/render/OpenGL.hpp | |
| parent | 5046c02cceea9bccf1b39fbc84ad062f59ce6e22 (diff) | |
Added default background as a PNG
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<CWindow*, CFramebuffer> m_mWindowFramebuffers; std::unordered_map<SMonitor*, CFramebuffer> m_mMonitorFramebuffers; + std::unordered_map<SMonitor*, CTexture> m_mMonitorBGTextures; private: std::list<GLuint> 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<CHyprOpenGLImpl> g_pHyprOpenGL;
\ No newline at end of file |
