Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/Camera.h @ 212:fe2cc32cd94d
fix
author | gongo@localhost.localdomain |
---|---|
date | Sat, 31 Jan 2009 08:54:22 +0900 |
parents | dee3b5092a70 |
children | 0f1ff7b06157 |
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 lookat_base[4]; float up_base[4]; float fov; float near; float far; void createViewTransformMatrix(float*, float*, float*, float*); void createPerspectiveTransformMatrix(float *, float); void createScreenTransformMatrix(float *sm, float _w, float _h); void update(int screen_w, int screen_h); void getLookAt(float *lookat); void getUp(float *up, float *lookat); }; typedef Camera *CameraPtr; #endif