Getter for near and far clip
This commit is contained in:
parent
02bb523e5b
commit
f4281096ea
1 changed files with 8 additions and 0 deletions
|
|
@ -67,6 +67,14 @@ public:
|
|||
return keys.left || keys.right || keys.up || keys.down;
|
||||
}
|
||||
|
||||
float getNearClip() {
|
||||
return znear;
|
||||
}
|
||||
|
||||
float getFarClip() {
|
||||
return zfar;
|
||||
}
|
||||
|
||||
void setPerspective(float fov, float aspect, float znear, float zfar)
|
||||
{
|
||||
this->fov = fov;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue