You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
405 B
23 lines
405 B
#pragma once
|
|
|
|
#include "glm/fwd.hpp"
|
|
#include "renderer.hpp"
|
|
#include "GLFW/glfw3.h"
|
|
|
|
#define CAM_MAX_ANGLE 89.99f
|
|
|
|
class Controller : public Renderer::Camera {
|
|
public:
|
|
using Renderer::Camera::Camera;
|
|
|
|
float sensitivity = 0.04f;
|
|
|
|
void processInput(float deltaTime);
|
|
|
|
private:
|
|
float pitch, yaw;
|
|
double lastX, lastY;
|
|
bool firstMouseInput = true;
|
|
|
|
void processMouseInput(float deltaTime);
|
|
};
|
|
|