renderer: proper full occlusion checks for back layer

This commit is contained in:
Vaxry
2023-11-26 15:24:24 +00:00
parent 408d96668d
commit 68e57b7ee3
3 changed files with 12 additions and 1 deletions

View File

@@ -88,6 +88,11 @@ CRegion& CRegion::invert(pixman_box32_t* box) {
return *this;
}
CRegion& CRegion::invert(const CBox& box) {
pixman_box32 pixmanBox = {box.x, box.y, box.w + box.x, box.h + box.y};
return this->invert(&pixmanBox);
}
CRegion& CRegion::translate(const Vector2D& vec) {
pixman_region32_translate(&m_rRegion, vec.x, vec.y);
return *this;