-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathEngineActorClasses.cpp
More file actions
40 lines (38 loc) · 1.28 KB
/
Copy pathEngineActorClasses.cpp
File metadata and controls
40 lines (38 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "Engine.h"
#include "SkeletalMeshActor.h"
#include "StaticMeshActor.h"
#include "CameraActor.h"
#include "FreeRoamCameraController.h"
#include "ArcBallCameraController.h"
#include "AnimationVisualizationActor.h"
#include "DirectionalLightActor.h"
#include "PointLightActor.h"
#include "AtmosphereActor.h"
#include "TerrainActor.h"
#include "ToneMappingActor.h"
#include "EnvMapActor.h"
#include "AmbientLightActor.h"
#include "FrameIdDisplayActor.h"
#include "SimpleAnimationControllerActor.h"
namespace GameEngine
{
#define REGISTER_ACTOR_CLASS(name) engine->RegisterActorClass(#name, []() {return new name##Actor(); });
void RegisterEngineActorClasses(Engine * engine)
{
REGISTER_ACTOR_CLASS(StaticMesh);
REGISTER_ACTOR_CLASS(SkeletalMesh);
REGISTER_ACTOR_CLASS(Camera);
REGISTER_ACTOR_CLASS(FreeRoamCameraController);
REGISTER_ACTOR_CLASS(ArcBallCameraController);
REGISTER_ACTOR_CLASS(AnimationVisualization);
REGISTER_ACTOR_CLASS(DirectionalLight);
REGISTER_ACTOR_CLASS(PointLight);
REGISTER_ACTOR_CLASS(AmbientLight);
REGISTER_ACTOR_CLASS(Atmosphere);
REGISTER_ACTOR_CLASS(Terrain);
REGISTER_ACTOR_CLASS(ToneMapping);
REGISTER_ACTOR_CLASS(EnvMap);
REGISTER_ACTOR_CLASS(FrameIdDisplay);
REGISTER_ACTOR_CLASS(SimpleAnimationController);
}
}