Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-03 14:47:12 +0000
committerStijn Buys <ingar@osirion.org>2008-05-03 14:47:12 +0000
commit5d1e18b796d41e035d0d3e828cc6db54ed21a4b6 (patch)
treed4fc3cd9dd34a5064c6b159309ca9d247081e0d8 /src/client/camera.h
parent3dedab035c98772fd9607480bddc8ffd9d7dc799 (diff)
camera handling, Cockpit view
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();