summaryrefslogtreecommitdiff
path: root/camera.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2010-08-18 14:38:34 +0000
committerIan C <ianc@noddybox.co.uk>2010-08-18 14:38:34 +0000
commit19bbd5822593c7198dd54eb0f5d38fa1ed8d8fb7 (patch)
tree97f7f8849c3a8282ba571a64ff2a655cdf5d41aa /camera.h
parent0d2f672482fee91a9642a7cb6eb01fcdded79159 (diff)
Reformatted code and altered the attraction rule to something a bit more
correct. Also added two tests to prove it works.
Diffstat (limited to 'camera.h')
-rw-r--r--camera.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/camera.h b/camera.h
index d1c39c0..7bb42f9 100644
--- a/camera.h
+++ b/camera.h
@@ -31,27 +31,27 @@
#include "matrix.h"
class Camera
- {
- public:
- Camera();
- virtual ~Camera();
-
- // Initially the camera always looks along the Z axis
- //
- void setPos(GLfloat x, GLfloat y, GLfloat z);
-
- void addSpeed(GLfloat speed);
- void roll(double angle);
- void pitch(double angle);
-
- void setView() const;
-
- private:
- GLfloat px,py,pz;
- Matrix direction;
- Matrix left;
- Matrix up;
- };
+{
+public:
+ Camera();
+ virtual ~Camera();
+
+ // Initially the camera always looks along the Z axis
+ //
+ void setPos(GLfloat x, GLfloat y, GLfloat z);
+
+ void addSpeed(GLfloat speed);
+ void roll(double angle);
+ void pitch(double angle);
+
+ void setView() const;
+
+private:
+ GLfloat px,py,pz;
+ Matrix direction;
+ Matrix left;
+ Matrix up;
+};
#endif