home *** CD-ROM | disk | FTP | other *** search
/ 3D Games (Spidla) / 3dhry1.iso / carterrain / src / camera.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-03-17  |  491 b   |  35 lines

  1. #ifndef _CAMERA_H_
  2. #define _CAMERA_H_
  3.  
  4. #include <ode/ode.h>
  5. #include "trig.h"
  6.  
  7. #define CAMERA_CHASE0    0
  8. #define CAMERA_CHASE1    1
  9. #define CAMERA_CHASE2    2
  10.  
  11. class CCamera
  12. {
  13. private:
  14.     CVector tpos;
  15.     CVector ttar;
  16.  
  17.     int mode;
  18.     
  19.     void update_tpos(void);
  20.     void update_ttar(void);
  21. public:
  22.     dBodyID    car;
  23.         
  24.     CVector position;
  25.     CVector target;
  26.     
  27.     void init(dBodyID c);
  28.     void update(double t);
  29.     
  30.     void set_mode(int m);
  31.     int get_mode(void) { return mode; }
  32. };
  33.  
  34. #endif
  35.