hyprland-plugins/hyprtrails/TrailPassElement.cpp

19 lines
469 B
C++
Raw Normal View History

2024-12-22 17:33:07 +01:00
#include "TrailPassElement.hpp"
#include <hyprland/src/render/OpenGL.hpp>
#include "trail.hpp"
CTrailPassElement::CTrailPassElement(const CTrailPassElement::STrailData& data_) : data(data_) {
;
}
void CTrailPassElement::draw(const CRegion& damage) {
data.deco->renderPass(g_pHyprOpenGL->m_RenderData.pMonitor.lock(), data.a);
}
bool CTrailPassElement::needsLiveBlur() {
return false;
}
bool CTrailPassElement::needsPrecomputeBlur() {
return false;
}