[EDIT] edit lib files
This commit is contained in:
21
src/FpsCam.h
Normal file
21
src/FpsCam.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
struct GLFWwindow;
|
||||
|
||||
class FpsCam
|
||||
{
|
||||
public:
|
||||
FpsCam(GLFWwindow*);
|
||||
|
||||
glm::mat4 getMatrix();
|
||||
void update(GLFWwindow*);
|
||||
|
||||
private:
|
||||
glm::vec3 position = glm::vec3(0, 0, 0);
|
||||
glm::vec2 rotation = glm::vec2(0, 0);
|
||||
|
||||
void move(float angle, float fac);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user