2024-12-22 17:12:09 +01:00
|
|
|
#include "BorderPassElement.hpp"
|
|
|
|
|
#include "../OpenGL.hpp"
|
|
|
|
|
|
2025-05-05 23:44:49 +02:00
|
|
|
CBorderPassElement::CBorderPassElement(const CBorderPassElement::SBorderData& data_) : m_data(data_) {
|
2024-12-22 17:12:09 +01:00
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CBorderPassElement::draw(const CRegion& damage) {
|
2025-05-05 23:44:49 +02:00
|
|
|
if (m_data.hasGrad2)
|
|
|
|
|
g_pHyprOpenGL->renderBorder(m_data.box, m_data.grad1, m_data.grad2, m_data.lerp, m_data.round, m_data.roundingPower, m_data.borderSize, m_data.a, m_data.outerRound);
|
2024-12-22 17:12:09 +01:00
|
|
|
else
|
2025-05-05 23:44:49 +02:00
|
|
|
g_pHyprOpenGL->renderBorder(m_data.box, m_data.grad1, m_data.round, m_data.roundingPower, m_data.borderSize, m_data.a, m_data.outerRound);
|
2024-12-22 17:12:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool CBorderPassElement::needsLiveBlur() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool CBorderPassElement::needsPrecomputeBlur() {
|
|
|
|
|
return false;
|
2025-01-05 12:38:49 -06:00
|
|
|
}
|