view Renderer/Engine/Camera.h @ 639:91d03774c407 draft

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 19 Nov 2009 18:45:24 +0900
parents 3bc98f6d31ff
children 7a311860a76e
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