From 980c5c41dc8e88ab3e7a5751348a92a0662a2ea4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 21 Jul 2008 22:03:26 +0000 Subject: prepare keybinds for modifier keys, fix for the camera clipping issue --- src/render/camera.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/render/camera.h') diff --git a/src/render/camera.h b/src/render/camera.h index edc3496..253661f 100644 --- a/src/render/camera.h +++ b/src/render/camera.h @@ -11,9 +11,6 @@ namespace render { -const float frustum_size = 0.5f; -const float frustum_front = 1.0f; - /// camera functions class Camera { @@ -65,7 +62,13 @@ public: static void set_mode(Mode newmode); /// set camera aspect ratio - static void set_aspect(float aspect); + static void set_aspect(int width, int height); + + /// current frustum front + static float frustum_front(); + + /// current frustum size (height); + static float frustum_size(); private: static math::Vector3f camera_eye; @@ -73,6 +76,8 @@ private: static math::Axis camera_axis; static Mode camera_mode; static float camera_aspect; + static float camera_frustum_size; + static float camera_frustum_front; // current and target yaw angle in XZ plane, positive is looking left static float direction_current; -- cgit v1.2.3