blob: 80e9a9efb3e237655c59764b35f76d7115e2fd38 (
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
|
#pragma once
#include "PassElement.hpp"
#include "../../config/shared/complex/ComplexDataTypes.hpp"
class CBorderPassElement : public IPassElement {
public:
struct SBorderData {
CBox box;
Config::CGradientValueData grad1, grad2;
bool hasGrad2 = false;
float lerp = 0.F, a = 1.F;
int round = 0, borderSize = 1, outerRound = -1;
float roundingPower = 2.F;
PHLWINDOWREF window;
};
CBorderPassElement(const SBorderData& data_);
virtual ~CBorderPassElement() = default;
virtual bool needsLiveBlur();
virtual bool needsPrecomputeBlur();
virtual const char* passName() {
return "CBorderPassElement";
}
virtual ePassElementType type() {
return EK_BORDER;
};
SBorderData m_data;
};
|