2020-09-30 13:48:41 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "Actor.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
DECLARE_REF(CameraComponent)
|
|
|
|
|
class CameraActor : public Actor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CameraActor();
|
|
|
|
|
virtual ~CameraActor();
|
|
|
|
|
PCameraComponent getCameraComponent() const
|
|
|
|
|
{
|
|
|
|
|
return cameraComponent;
|
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
PCameraComponent cameraComponent;
|
|
|
|
|
PComponent sceneComponent; // This will be the root, camera will be the child
|
|
|
|
|
};
|
2021-04-01 16:40:14 +02:00
|
|
|
DEFINE_REF(CameraActor)
|
2020-09-30 13:48:41 +02:00
|
|
|
} // namespace Seele
|