Mercurial > hg > Game > Cerium
view Renderer/test_render/Camera.h @ 327:c8edba9cabb7 draft
add test_render/show_time.{cpp,h} {spe,task}/ShowTime.{cpp,h} but incomplete
author | aaa |
---|---|
date | Fri, 12 Jun 2009 02:07:06 +0900 |
parents | 15bfacccde99 |
children |
line wrap: on
line source
#ifndef INCLUDED_CAMERA #define INCLUDED_CAMERA #ifndef INCLUDED_SCENE_GRAPH # include "SceneGraph.h" #endif class Camera : public SceneGraph { public: Camera(float w = 640, float h = 480); ~Camera(void); float zd[4]; // direction z float yd[4]; // direction y float fov; float near; float far; float *m_view; float *m_pers; float *m_screen; void updateView(void); void updatePerspective(float w, float h); void updateScreen(float w, float h); void setCamera(float *pose); void update(float screen_w, float screen_h); }; typedef Camera *CameraPtr; #endif