From 0948b078e1789605c42746a024df6039bb566b45 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 26 Nov 2022 17:56:43 +0000 Subject: added border gradients --- src/render/OpenGL.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 70e6b258..e54b76aa 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -68,6 +68,8 @@ struct SCurrentRenderData { wlr_box clipBox = {}; }; +class CGradientValueData; + class CHyprOpenGLImpl { public: @@ -82,7 +84,7 @@ public: void renderTexture(const CTexture&, wlr_box*, float a, int round = 0, bool discardOpaque = false, bool allowCustomUV = false); void renderTextureWithBlur(const CTexture&, wlr_box*, float a, wlr_surface* pSurface, int round = 0); void renderRoundedShadow(wlr_box*, int round, int range, float a = 1.0); - void renderBorder(wlr_box*, const CColor&, int round); + void renderBorder(wlr_box*, const CGradientValueData&, int round, float a = 1.0); void makeWindowSnapshot(CWindow*); void makeRawWindowSnapshot(CWindow*, CFramebuffer*); -- cgit v1.2.3