forked from Dynamitos/MeshShadingDemo
22 lines
652 B
C++
22 lines
652 B
C++
#pragma once
|
|||
|
|
#include "Define.h"
|
||
|
|
#include "Seele/MinimalEngine.h"
|
||
|
|
#include <Seele/Scene/Scene.h>
|
||
|
|
#include <Seele/System/ComponentSystem.h>
|
||
|
|
#include <Seele/Component/Camera.h>
|
||
|
|
#include <Seele/Component/KeyboardInput.h>
|
||
|
|
|
||
|
|
class FlyCamSystem : public System::ComponentSystem<
|
||
|
|
Component::KeyboardInput,
|
||
|
|
Component::Camera,
|
||
|
|
Component::Transform>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
FlyCamSystem(PScene scene);
|
||
|
|
virtual ~FlyCamSystem();
|
||
|
|
virtual void update(Seele::Component::KeyboardInput& input, Seele::Component::Camera& camera, Seele::Component::Transform& transform) override;
|
||
|
|
private:
|
||
|
|
float lastMouseX;
|
||
|
|
float lastMouseY;
|
||
|
|
};
|
||
|
|
DEFINE_REF(FlyCamSystem)
|