forked from Dynamitos/MeshShadingDemo
Adding skeleton
This commit is contained in:
1 parent
ad8f30f26e
commit
3895fbb3d3
19 files changed
+491
-35
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#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>();
|
||||
}
|
||||
Reference in new issue
Block a user