diff Renderer/Engine/Camera.h @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents Renderer/test_render/Camera.h@55ea4465b1a2
children d0b8860c17f8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Engine/Camera.h	Mon Oct 12 09:39:35 2009 +0900
@@ -0,0 +1,31 @@
+#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