summaryrefslogtreecommitdiff
path: root/src/render/pass/ClearPassElement.cpp
blob: 256b857fb5e89646a8329d419ab6999049ada3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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();
}