Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/camera.h')
-rw-r--r--src/render/camera.h13
1 files changed, 9 insertions, 4 deletions
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;