Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/Camera.h @ 603:42c94f85c779
long -> memaddr (64 or 32)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Nov 2009 14:13:29 +0900 |
parents | 735f76483bb2 |
children | d0b8860c17f8 |
line wrap: on
line source
#ifndef INCLUDED_CAMERA #define INCLUDED_CAMERA #include "SceneGraph.h" 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