summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-18 13:10:22 +0200
committerGitHub <noreply@github.com>2022-05-18 13:10:22 +0200
commit6c437763f65489b7c720c56d2f2f69781a39e497 (patch)
tree81d0fd4a54d5891558b62969ba3b41853dd761ff /src/render/OpenGL.hpp
parentc2922b6b0941fc5fd4e82877df179e14cc2d3f93 (diff)
parentba573a529afdbf368aa632cf70b41c9a0595578b (diff)
Merge branch 'main' into scaling
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index ca70c449..b3aa5968 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -53,11 +53,10 @@ public:
void begin(SMonitor*, pixman_region32_t*, bool fake = false);
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<CWindow*, CFramebuffer> m_mWindowFramebuffers;
@@ -109,9 +110,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<CHyprOpenGLImpl> g_pHyprOpenGL; \ No newline at end of file