/*! -------------------------------------------------------------------- \file Camera.h \brief Class to a encapsulate a camera \author James Kuffner \date 2002-09-20 -------------------------------------------------------------------- */ #ifndef __CAMERA_H__ #define __CAMERA_H__ #include "playerlocation.h" //--------------------------------------------------------------------- // Camera // //! Class to encapsulate a camera // //--------------------------------------------------------------------- class Camera { public: Camera(); virtual ~Camera() {} void Init(float w, float h); //! set the camera viewing parameters void SetViewingParams(float fov, float near_clip, float far_clip); //! set the aspect ratio void SetAspectRatio(float aspect); //sets the view and returns what it was set to void SetView(PlayerState player, CameraState* camera); //////////////////////////////////////////////////////////////// private: //enum { X = 0, Y, Z }; //! stores camera viewing parameters float _fov; float _nearClip; float _farClip; float _aspectRatio; }; #endif // __CAMERA_H__