refactor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user