blob: 435b53015df77e3174617651440eb3c6af40bd39 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#pragma once
#include "../../defines.hpp"
#include "PassElement.hpp"
class CGradientValueData;
class CTexture;
class CRenderPass {
public:
bool empty() const;
bool single() const;
void add(UP<IPassElement>&& elem);
void clear();
void removeAllOfType(const std::string& type);
CRegion render(const CRegion& damage_);
private:
CRegion m_damage;
std::vector<CRegion> m_occludedRegions;
CRegion m_totalLiveBlurRegion;
struct SPassElementData {
CRegion elementDamage;
UP<IPassElement> element;
bool discard = false;
};
std::vector<UP<SPassElementData>> m_passElements;
void simplify();
float oneBlurRadius();
void renderDebugData();
struct {
bool present = false;
SP<CTexture> keyboardFocusText, pointerFocusText, lastWindowText;
} m_debugData;
friend class CHyprOpenGLImpl;
};
|