Renderer refactoring. WIP InputSystem.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#ifndef InputSystem_h__
|
||||
#define InputSystem_h__
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "System.h"
|
||||
|
||||
#include "Renderer.h"
|
||||
#include "Components/Input.h"
|
||||
|
||||
namespace Systems
|
||||
@@ -13,13 +11,14 @@ namespace Systems
|
||||
class InputSystem : public System
|
||||
{
|
||||
public:
|
||||
InputSystem(World* world)
|
||||
: System(world)
|
||||
{
|
||||
|
||||
}
|
||||
InputSystem(World* world, Renderer* renderer)
|
||||
: System(world), m_Renderer(renderer) { }
|
||||
|
||||
void Update(double dt, EntityID entity, EntityID parent) override;
|
||||
|
||||
private:
|
||||
Renderer* m_Renderer;
|
||||
float m_LastMouseX, m_LastMouseY;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user