Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/Camera.h @ 219:0f1ff7b06157
allExecute する度に SceneGraph をコピーしていく様に変更
author | gongo@gendarme.local |
---|---|
date | Mon, 09 Feb 2009 00:12:40 +0900 |
parents | fe2cc32cd94d |
children | d61fded0729e |
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(void); float zd[4]; // direction z float yd[4]; // direction y float fov; 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); void setCamera(float *pose); void update(int screen_w, int screen_h); }; typedef Camera *CameraPtr; #endif