wavelength 1.0.0
Loading...
Searching...
No Matches
setenvaction.h
Go to the documentation of this file.
1#pragma once
2
4#include "math/color.h"
5#include "rnd/rndenviron.h"
6#include "script/dataarray.h"
7
16public:
23 ~SetEnvAction() override = default;
24
32 explicit SetEnvAction(DataArray *pAction);
33
40 void Exec() override;
41
42private:
43 // The values the node set.
44 enum Flag {
45 kFlagFogStart = 1,
46 kFlagFogEnd = 2,
47 kFlagFogDensity = 4,
48 kFlagFogColor = 8,
49 };
50
51 int mFlags;
52 RndEnviron *mEnviron;
53 float mFogStart;
54 float mFogEnd;
55 float mFogDensity;
56 alignas(16) Color mFogColor;
57};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Lighting and fog environment, made current for the drawables after it when it is drawn.
Definition rndenviron.h:18
~SetEnvAction() override=default
Destroy the object.
void Exec() override
Write the values the node set into the environment.
SetEnvAction(DataArray *pAction)
Read the action.
Something a trigger does when its conditions hold.
Definition triggeraction.h:15
Linear colour with four float components.
Definition color.h:12