From 2e3f0d5991874edb01f1bfe4ffc75701f8b398dc Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 29 Jan 2024 23:11:00 +0000 Subject: renderer: Add new background infrastructure Adds new backgrounds from the winners of the contest Rewrites how it works Allows high color precision PNGs (RGB32F precisely) Fixes a small bug in renderTextureInternalWithDamage Nukes misc:force_hypr_chan --- src/render/OpenGL.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 9fd6d197..fc5eed41 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -71,8 +71,6 @@ struct SMonitorRenderData { bool blurFBDirty = true; bool blurFBShouldRender = false; - CBox backgroundTexBox; - // Shaders bool m_bShadersInitialized = false; CShader m_shQUAD; @@ -191,7 +189,7 @@ class CHyprOpenGLImpl { std::unordered_map m_mWindowFramebuffers; std::unordered_map m_mLayerFramebuffers; std::unordered_map m_mMonitorRenderResources; - std::unordered_map m_mMonitorBGTextures; + std::unordered_map m_mMonitorBGFBs; struct { PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glEGLImageTargetRenderbufferStorageOES = nullptr; @@ -229,7 +227,7 @@ class CHyprOpenGLImpl { void renderTextureInternalWithDamage(const CTexture&, CBox* pBox, float a, CRegion* damage, int round = 0, bool discardOpaque = false, bool noAA = false, bool allowCustomUV = false, bool allowDim = false); void renderTexturePrimitive(const CTexture& tex, CBox* pBox); - void renderSplash(cairo_t* const, cairo_surface_t* const, double); + void renderSplash(cairo_t* const, cairo_surface_t* const, double offset, const Vector2D& size); void preBlurForCurrentMonitor(); -- cgit v1.2.3