Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/camera.h')
-rw-r--r--src/client/camera.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/client/camera.h b/src/client/camera.h
index 751ff02..649bdc9 100644
--- a/src/client/camera.h
+++ b/src/client/camera.h
@@ -15,7 +15,7 @@ namespace client {
namespace camera
{
/// enum indicating the camera mode
- enum Mode {Free, Track, Overview};
+ enum Mode {Free, Track, Cockpit, Overview};
/// initialize the camera
void init();
@@ -25,18 +25,12 @@ namespace camera
/// draw the OpenGL camera transformation
void draw(float elapsed);
+
+ /// set target direction
+ void set_direction(float direction);
- /// rotate the camera left
- void key_left();
-
- /// rotate the camera right
- void key_right();
-
- /// rotate the camera up
- void key_up();
-
- /// rotate the camera down
- void key_down();
+ /// set target pitch
+ void set_pitch(float pitch);
/// switch to next camera mode
void next_mode();