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