From 66a3719b8613a69890f7e6cb0ebdb107703e42e0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 4 Nov 2023 19:35:49 +0000 Subject: renderer: allow transform enabling from outside opengl --- src/render/OpenGL.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index fea967e5..7e3e4e7c 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -97,7 +97,6 @@ struct SCurrentRenderData { }; class CGradientValueData; -class CHyprDropShadowDecoration; class CHyprOpenGLImpl { public: @@ -115,6 +114,9 @@ class CHyprOpenGLImpl { void renderTextureWithBlur(const CTexture&, CBox*, float a, wlr_surface* pSurface, int round = 0, bool blockBlurOptimization = false, float blurA = 1.f); void renderRoundedShadow(CBox*, int round, int range, float a = 1.0); void renderBorder(CBox*, const CGradientValueData&, int round, int borderSize, float a = 1.0, int outerRound = -1 /* use round */); + void renderTextureMatte(const CTexture& tex, CBox* pBox, CFramebuffer& matte); + + void setMonitorTransformEnabled(bool enabled); void saveMatrix(); void setMatrixScaleTranslate(const Vector2D& translate, const float& scale); @@ -192,7 +194,6 @@ 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 renderTextureMatte(const CTexture& tex, CBox* pBox, CFramebuffer& matte); void renderSplash(cairo_t* const, cairo_surface_t* const, double); void preBlurForCurrentMonitor(); @@ -200,7 +201,6 @@ class CHyprOpenGLImpl { bool shouldUseNewBlurOptimizations(SLayerSurface* pLayer, CWindow* pWindow); friend class CHyprRenderer; - friend class CHyprDropShadowDecoration; }; inline std::unique_ptr g_pHyprOpenGL; -- cgit v1.2.3