00001 /* Crown and Cutlass 00002 * Camera Header 00003 */ 00004 00005 #if !defined( _CAMERA_H_ ) 00006 00007 #define _CAMERA_H_ 00008 00009 class Camera { 00010 public: 00011 // Contructor, pass in window width & height 00012 Camera(float winRatio, float x, float y, float z); 00013 00014 // Set the camera location 00015 void SetPosition(float x, float y, float z); 00016 00017 // Update the ratio 00018 void ChangeRatio(float winRatio); 00019 00020 // Set the projection matrix 00021 void SetProjection(); 00022 00023 void SetCamera(); 00024 00025 private: 00026 // Calculate the dist, angles based on position 00027 void CalcValues(); 00028 00029 float m_ratio; 00030 float m_angle; 00031 float m_angle2; 00032 float m_position[3]; 00033 }; 00034 00035 #endif
1.4.7