mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
refactor
This commit is contained in:
parent
167388aefb
commit
ef28a368cb
12 changed files with 54 additions and 51 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <glm/ext.hpp>
|
||||
|
||||
Camera::Camera(glm::vec3 position, float fov) : fov(fov), position(position), zoom(1.0f), rotation(1.0f) {
|
||||
Camera::Camera(glm::vec3 position, float fov) : fov(fov), position(position) {
|
||||
updateVectors();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ public:
|
|||
|
||||
glm::vec3 position;
|
||||
|
||||
float zoom;
|
||||
glm::mat4 rotation;
|
||||
float zoom = 1.0f;
|
||||
glm::mat4 rotation {1.0f};
|
||||
bool perspective = true;
|
||||
bool flipped = false;
|
||||
float aspect = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue