wavelength 1.0.0
Loading...
Searching...
No Matches
bluraction.h
Go to the documentation of this file.
1#pragma once
2
4#include "script/dataarray.h"
5
13class BlurAction : public TriggerAction {
14public:
21 ~BlurAction() override = default;
22
30 explicit BlurAction(DataArray *pAction);
31
38 void Exec() override;
39
47 bool Poll() override;
48
49private:
50 // The number of values in the rectangle.
51 static constexpr int kRectSize = 4;
52
53 float mAmount;
54 int mCount;
55 float mRect[kRectSize];
56 float mDuration;
57 float mEndTime;
58};
BlurAction(DataArray *pAction)
Read the action.
void Exec() override
Copy the parameters into ThePs and switch the blur on.
~BlurAction() override=default
Destroy the object.
bool Poll() override
Switch the blur off once its time has passed.
Reference-counted array of script data nodes.
Definition dataarray.h:20
Something a trigger does when its conditions hold.
Definition triggeraction.h:15