Added basic camera class with firs-person view (wip!)
This commit is contained in:
parent
830e9b75ea
commit
73e18a4c05
3 changed files with 194 additions and 1 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "vulkanTextureLoader.hpp"
|
||||
#include "vulkanMeshLoader.hpp"
|
||||
#include "vulkantextoverlay.hpp"
|
||||
#include "camera.hpp"
|
||||
|
||||
#define GAMEPAD_BUTTON_A 0x1000
|
||||
#define GAMEPAD_BUTTON_B 0x1001
|
||||
|
|
@ -160,6 +161,8 @@ public:
|
|||
// Use to adjust mouse zoom speed
|
||||
float zoomSpeed = 1.0f;
|
||||
|
||||
Camera camera;
|
||||
|
||||
glm::vec3 rotation = glm::vec3();
|
||||
glm::vec3 cameraPos = glm::vec3();
|
||||
glm::vec2 mousePos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue