From cad71218c0ca67b43a1085d11077daa7398f38d5 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 17 May 2022 13:16:37 +0200 Subject: borders are now gangsta --- src/render/OpenGL.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 34b1a871..4209d9ac 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -53,11 +53,10 @@ public: void begin(SMonitor*, pixman_region32_t*); void end(); - void renderRect(wlr_box*, const CColor&); + void renderRect(wlr_box*, const CColor&, int round = 0); void renderTexture(wlr_texture*, wlr_box*, float a, int round = 0); - void renderTexture(const CTexture&, wlr_box*, float a, int round = 0, bool discardOpaque = false); - void renderTextureWithBlur(const CTexture&, wlr_box*, float a, wlr_surface* pSurface, int round = 0); - void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0); + void renderTexture(const CTexture&, wlr_box*, float a, int round = 0, bool discardOpaque = false, bool border = false); + void renderTextureWithBlur(const CTexture&, wlr_box*, float a, wlr_surface* pSurface, int round = 0, bool border = false); void makeWindowSnapshot(CWindow*); void makeLayerSnapshot(SLayerSurface*); @@ -77,6 +76,8 @@ public: GLint m_iCurrentOutputFb = 0; GLint m_iWLROutputFb = 0; + CWindow* m_pCurrentWindow = nullptr; // hack to get the current rendered window + pixman_region32_t m_rOriginalDamageRegion; // used for storing the pre-expanded region std::unordered_map m_mWindowFramebuffers; @@ -107,9 +108,8 @@ private: // returns the out FB, can be either Mirror or MirrorSwap CFramebuffer* blurMainFramebufferWithDamage(float a, wlr_box* pBox, pixman_region32_t* damage); - void renderTextureInternalWithDamage(const CTexture&, wlr_box* pBox, float a, pixman_region32_t* damage, int round = 0, bool discardOpaque = false); - void renderTextureWithBlurInternal(const CTexture&, wlr_box*, float a, int round = 0); - + void renderTextureInternalWithDamage(const CTexture&, wlr_box* pBox, float a, pixman_region32_t* damage, int round = 0, bool discardOpaque = false, bool border = false); + void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0); }; inline std::unique_ptr g_pHyprOpenGL; \ No newline at end of file -- cgit v1.2.3