Added antialiasing to outer edges

simplified, stupidly fast MSAA for rounded edges
This commit is contained in:
vaxerski 2022-06-02 22:58:54 +02:00
parent 7b568d7ad8
commit e11cb8b328
4 changed files with 401 additions and 52 deletions

View file

@ -110,7 +110,7 @@ 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, bool border = false);
void renderTextureInternalWithDamage(const CTexture&, wlr_box* pBox, float a, pixman_region32_t* damage, int round = 0, bool discardOpaque = false, bool border = false, bool noAA = false);
void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0);
};