hyprland-plugins/hyprtrails/TrailPassElement.hpp

26 lines
580 B
C++
Raw Normal View History

2024-12-22 17:33:07 +01:00
#pragma once
#include <hyprland/src/render/pass/PassElement.hpp>
class CTrail;
class CTrailPassElement : public IPassElement {
public:
struct STrailData {
CTrail* deco = nullptr;
float a = 1.F;
};
CTrailPassElement(const STrailData& data_);
virtual ~CTrailPassElement() = default;
virtual void draw(const CRegion& damage);
virtual bool needsLiveBlur();
virtual bool needsPrecomputeBlur();
virtual const char* passName() {
return "CTrailPassElement";
}
private:
STrailData data;
};