wavelength 1.0.0
Loading...
Searching...
No Matches
setmeshaction.h
Go to the documentation of this file.
1#pragma once
2
4#include "rnd/rndmat.h"
5#include "rnd/rndmesh.h"
6#include "script/dataarray.h"
7
15public:
22 ~SetMeshAction() override = default;
23
31 explicit SetMeshAction(DataArray *pAction);
32
39 void Exec() override;
40
41private:
42 // The values the node set.
43 enum Flag {
44 kFlagMat = 1,
45 };
46
47 int mFlags;
48 RndMesh *mMesh;
49 RndMat *mMat;
50};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
SetMeshAction(DataArray *pAction)
Read the action.
~SetMeshAction() override=default
Destroy the object.
void Exec() override
Give the mesh the material, when the node named one.
Something a trigger does when its conditions hold.
Definition triggeraction.h:15