summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-03 14:09:58 +0100
committerVaxry <vaxry@vaxry.net>2024-04-03 14:09:58 +0100
commitefdc1af04420b59917f8530a20ccfabe658f636a (patch)
tree14f40ed9e1dd288264478d1ff5a77e23c6b2ce54 /src/render/OpenGL.hpp
parent347b83903474ab9e95fa9d4ba123f6f78ab38d40 (diff)
renderer: some fixes for renderModif
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp5
1 files changed, 5 insertions, 0 deletions
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<std::pair<eRenderModifType, std::any>> 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);