From efdc1af04420b59917f8530a20ccfabe658f636a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 3 Apr 2024 14:09:58 +0100 Subject: renderer: some fixes for renderModif --- src/render/OpenGL.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 65f3e6ba..6af2a00f 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -47,6 +47,10 @@ struct SRenderModifData { std::vector> modifs; void applyToBox(CBox& box); + void applyToRegion(CRegion& rg); + float combinedScale(); + + bool enabled = true; }; struct SGLPixelFormat { @@ -138,6 +142,7 @@ class CHyprOpenGLImpl { void renderTextureMatte(const CTexture& tex, CBox* pBox, CFramebuffer& matte); void setMonitorTransformEnabled(bool enabled); + void setRenderModifEnabled(bool enabled); void saveMatrix(); void setMatrixScaleTranslate(const Vector2D& translate, const float& scale); -- cgit v1.2.3