diff options
Diffstat (limited to 'camera.h')
-rw-r--r-- | camera.h | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -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 |