refactor: reduce Window references
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
class Camera {
|
||||
float fov = 1.0f;
|
||||
float ar = 0.0f;
|
||||
public:
|
||||
glm::vec3 front {};
|
||||
glm::vec3 up {};
|
||||
@@ -17,7 +18,6 @@ public:
|
||||
glm::mat4 rotation {1.0f};
|
||||
bool perspective = true;
|
||||
bool flipped = false;
|
||||
float aspect = 0.0f;
|
||||
float near = 0.05f;
|
||||
float far = 1500.0f;
|
||||
|
||||
@@ -37,4 +37,5 @@ public:
|
||||
float getFov() const;
|
||||
|
||||
float getAspectRatio() const;
|
||||
void setAspectRatio(float ar);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user