mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
refactor: reduce Window references
This commit is contained in:
parent
896ab3597a
commit
74a94f869c
19 changed files with 151 additions and 155 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue