Files
MeshShadingDemo/src/System/FlyCamSystem.h
T

23 lines
713 B
C++
Raw Normal View History

2025-07-01 20:38:31 +02:00
#pragma once
#include "Define.h"
#include <MinimalEngine.h>
#include <Scene/Scene.h>
#include <System/ComponentSystem.h>
#include <Component/Camera.h>
#include <Component/KeyboardInput.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;
};
2024-04-22 12:47:05 +02:00
DEFINE_REF(FlyCamSystem)