diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-01-29 23:11:00 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-01-29 23:11:00 +0000 |
| commit | 2e3f0d5991874edb01f1bfe4ffc75701f8b398dc (patch) | |
| tree | 1068edda03e18168766bddab3cd02c90d1d60933 /src/render/OpenGL.hpp | |
| parent | 91e8c428431deac1e5eb8e537f002ab960777174 (diff) | |
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
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<CWindow*, CFramebuffer> m_mWindowFramebuffers; std::unordered_map<SLayerSurface*, CFramebuffer> m_mLayerFramebuffers; std::unordered_map<CMonitor*, SMonitorRenderData> m_mMonitorRenderResources; - std::unordered_map<CMonitor*, CTexture> m_mMonitorBGTextures; + std::unordered_map<CMonitor*, CFramebuffer> 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(); |
