wavelength 1.0.0
Loading...
Searching...
No Matches
setcamaction.h
Go to the documentation of this file.
1#pragma once
2
4#include "rnd/rndcam.h"
5#include "script/dataarray.h"
6
14public:
21 ~SetCamAction() override = default;
22
30 explicit SetCamAction(DataArray *pAction);
31
38 void Exec() override;
39
40private:
41 // The values the node set.
42 enum Flag {
43 kFlagNear = 1,
44 kFlagFar = 2,
45 kFlagFov = 4,
46 };
47
48 int mFlags;
49 RndCam *mCam;
50 float mNear;
51 float mFar;
52 float mFov; // In radians.
53};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Camera.
Definition rndcam.h:23
void Exec() override
Set the projection, keeping the values the node did not set.
~SetCamAction() override=default
Destroy the object.
SetCamAction(DataArray *pAction)
Read the action.
Something a trigger does when its conditions hold.
Definition triggeraction.h:15