wavelength 1.0.0
Loading...
Searching...
No Matches
backgroundaction.h
Go to the documentation of this file.
1#pragma once
2
4#include "math/color.h"
5#include "script/dataarray.h"
6
14public:
21 ~BackgroundAction() override = default;
22
32 explicit BackgroundAction(DataArray *pAction);
33
40 void Exec() override;
41
49 bool Poll() override;
50
51private:
52 alignas(16) Color mColor;
53 alignas(16) Color mStartColor;
54 float mDuration;
55 float mStartTime;
56};
void Exec() override
Start the fade from the current clear colour.
BackgroundAction(DataArray *pAction)
Read the action.
~BackgroundAction() override=default
Destroy the object.
bool Poll() override
Set the clear colour for the time on the clock.
Reference-counted array of script data nodes.
Definition dataarray.h:20
Something a trigger does when its conditions hold.
Definition triggeraction.h:15
Linear colour with four float components.
Definition color.h:12