refactor: player cameras are resources now

This commit is contained in:
MihailRis
2024-07-12 00:02:01 +03:00
parent 9623f35862
commit 9a18476437
4 changed files with 36 additions and 20 deletions
+3 -1
View File
@@ -20,7 +20,9 @@ public:
bool flipped = false;
float aspect = 0.0f;
Camera() {}
Camera() {
updateVectors();
}
Camera(glm::vec3 position, float fov);
void rotate(float x, float y, float z);