mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
Added FOV and mouse sensitivity settings
This commit is contained in:
parent
af2786164a
commit
1d73c0bd9f
10 changed files with 66 additions and 10 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
class Camera {
|
||||
void updateVectors();
|
||||
float fov;
|
||||
public:
|
||||
glm::vec3 front;
|
||||
glm::vec3 up;
|
||||
|
|
@ -12,7 +13,7 @@ public:
|
|||
glm::vec3 dir;
|
||||
|
||||
glm::vec3 position;
|
||||
float fov;
|
||||
|
||||
float zoom;
|
||||
glm::mat4 rotation;
|
||||
bool perspective = true;
|
||||
|
|
@ -25,6 +26,9 @@ public:
|
|||
glm::mat4 getProjection();
|
||||
glm::mat4 getView(bool position=true);
|
||||
glm::mat4 getProjView();
|
||||
|
||||
void setFov(float fov);
|
||||
float getFov() const;
|
||||
};
|
||||
|
||||
#endif /* WINDOW_CAMERA_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue