Code cleanup
This commit is contained in:
parent
4d91720ccc
commit
0f56b8270d
5 changed files with 38 additions and 41 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Basic camera class
|
||||
* Basic camera class providing a look-at and first-person camera
|
||||
*
|
||||
* Copyright (C) 2016-2023 by Sascha Willems - www.saschawillems.de
|
||||
* Copyright (C) 2016-2024 by Sascha Willems - www.saschawillems.de
|
||||
*
|
||||
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
||||
*/
|
||||
|
|
@ -78,16 +78,16 @@ public:
|
|||
bool down = false;
|
||||
} keys;
|
||||
|
||||
bool moving()
|
||||
bool moving() const
|
||||
{
|
||||
return keys.left || keys.right || keys.up || keys.down;
|
||||
}
|
||||
|
||||
float getNearClip() {
|
||||
float getNearClip() const {
|
||||
return znear;
|
||||
}
|
||||
|
||||
float getFarClip() {
|
||||
float getFarClip() const {
|
||||
return zfar;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue