mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +01:00
Implemented frustum camera.
This commit is contained in:
parent
147d547ac4
commit
f4fbb8db59
@ -67,6 +67,15 @@ void FrustumCamera::bind() {
|
|||||||
|
|
||||||
FrustumCamera::FrustumCamera() :
|
FrustumCamera::FrustumCamera() :
|
||||||
Camera3D() {
|
Camera3D() {
|
||||||
|
offset = 0;
|
||||||
|
|
||||||
|
projection_matrix.set_frustum(
|
||||||
|
size,
|
||||||
|
screen_aspect_ratio,
|
||||||
|
offset,
|
||||||
|
znear,
|
||||||
|
zfar,
|
||||||
|
vaspect);
|
||||||
}
|
}
|
||||||
|
|
||||||
FrustumCamera::~FrustumCamera() {
|
FrustumCamera::~FrustumCamera() {
|
||||||
|
@ -49,7 +49,8 @@ public:
|
|||||||
|
|
||||||
class FrustumCamera : public Camera3D {
|
class FrustumCamera : public Camera3D {
|
||||||
public:
|
public:
|
||||||
//todo
|
float offset;
|
||||||
|
|
||||||
void bind();
|
void bind();
|
||||||
|
|
||||||
FrustumCamera();
|
FrustumCamera();
|
||||||
|
Loading…
Reference in New Issue
Block a user