forked from Dynamitos/MeshShadingDemo
21 lines
410 B
C++
21 lines
410 B
C++
#include "FlyCam.h"
|
|
|
|
FlyCam::FlyCam(PScene scene)
|
|
: Actor(scene)
|
|
{
|
|
attachComponent<Component::Camera>().mainCamera = true;
|
|
attachComponent<Component::KeyboardInput>();
|
|
}
|
|
|
|
FlyCam::~FlyCam()
|
|
{}
|
|
|
|
Component::Camera& FlyCam::getCamera()
|
|
{
|
|
return accessComponent<Component::Camera>();
|
|
}
|
|
|
|
Component::KeyboardInput& FlyCam::getKeyboardInput()
|
|
{
|
|
return accessComponent<Component::KeyboardInput>();
|
|
} |