Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/Camera.h @ 221:d61fded0729e
Cameraの設定、Makefile 修正
author | gongo@gendarme.local |
---|---|
date | Tue, 10 Feb 2009 01:47:12 +0900 |
parents | 0f1ff7b06157 |
children | 25c820b6060e |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/Camera.h Mon Feb 09 21:58:45 2009 +0900 +++ b/TaskManager/Test/test_render/Camera.h Tue Feb 10 01:47:12 2009 +0900 @@ -7,7 +7,8 @@ class Camera : public SceneGraph { public: - Camera(void); + Camera(float w = 640, float h = 480); + ~Camera(void); float zd[4]; // direction z float yd[4]; // direction y @@ -15,14 +16,16 @@ float near; float far; - void createRotMatrix(float *m); - void createViewTransformMatrix(float*, float*, float*, float*); - void createPerspectiveTransformMatrix(float *, float); - void createScreenTransformMatrix(float *sm, float _w, float _h); + 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(int screen_w, int screen_h); + void update(float screen_w, float screen_h); }; typedef Camera *CameraPtr;