00001 #ifndef INCLUDED_CAMERA
00002 #define INCLUDED_CAMERA
00003
00004 #ifndef INCLUDED_SCENE_GRAPH
00005 # include "SceneGraph.h"
00006 #endif
00007
00008 class Camera : public SceneGraph {
00009 public:
00010 Camera(float w = 640, float h = 480);
00011 ~Camera(void);
00012
00013 float zd[4];
00014 float yd[4];
00015 float fov;
00016 float near;
00017 float far;
00018
00019 float *m_view;
00020 float *m_pers;
00021 float *m_screen;
00022
00023 void updateView(void);
00024 void updatePerspective(float w, float h);
00025 void updateScreen(float w, float h);
00026
00027 void setCamera(float *pose);
00028 void update(float screen_w, float screen_h);
00029 };
00030
00031 typedef Camera *CameraPtr;
00032
00033 #endif