Skip to content

Commit 8a42745

Browse files
committed
Code cleanup
1 parent ac03679 commit 8a42745

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎base/camera.hpp‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
/*
22
* Basic camera class providing a look-at and first-person camera
33
*
4-
* Copyright (C) 2016-2024 by Sascha Willems - www.saschawillems.de
4+
* Copyright (C) 2016-2026 by Sascha Willems - www.saschawillems.de
55
*
66
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
77
*/
88

99
#define GLM_FORCE_RADIANS
1010
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
1111
#include <glm/glm.hpp>
12-
#include <glm/gtc/quaternion.hpp>
1312
#include <glm/gtc/matrix_transform.hpp>
1413

1514
class Camera
1615
{
1716
private:
18-
float fov;
19-
float znear, zfar;
17+
float fov{ 60.0f };
18+
float znear{ 0.1f }, zfar{ 1024.0f };
2019

2120
void updateViewMatrix()
2221
{

0 commit comments

Comments
 (0)