mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 02:01:53 -07:00
27 lines
571 B
C++
27 lines
571 B
C++
#include "ClearPassElement.hpp"
|
|
#include "../OpenGL.hpp"
|
|
|
|
CClearPassElement::CClearPassElement(const CClearPassElement::SClearData& data_) : m_data(data_) {
|
|
;
|
|
}
|
|
|
|
void CClearPassElement::draw(const CRegion& damage) {
|
|
g_pHyprOpenGL->clear(m_data.color);
|
|
}
|
|
|
|
bool CClearPassElement::needsLiveBlur() {
|
|
return false;
|
|
}
|
|
|
|
bool CClearPassElement::needsPrecomputeBlur() {
|
|
return false;
|
|
}
|
|
|
|
std::optional<CBox> CClearPassElement::boundingBox() {
|
|
return CBox{{}, {INT16_MAX, INT16_MAX}};
|
|
}
|
|
|
|
CRegion CClearPassElement::opaqueRegion() {
|
|
return *boundingBox();
|
|
}
|