Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/Camera.h @ 217:bfdd037aee21 draft
fix
author | gongo@localhost.localdomain |
---|---|
date | Wed, 04 Feb 2009 22:50:42 +0900 |
parents | c020ccff4627 |
children | 335ea3665fcd |
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