2016-01-17 22:41:49 +00:00
|
|
|
#ifndef URDE_CAMERA_HPP
|
|
|
|
#define URDE_CAMERA_HPP
|
|
|
|
#include <CProjection.hpp>
|
|
|
|
#include <CFrustum.hpp>
|
|
|
|
#include <CQuaternion.hpp>
|
|
|
|
#include <CVector3f.hpp>
|
|
|
|
#include <Math.hpp>
|
|
|
|
|
|
|
|
namespace URDE
|
|
|
|
{
|
|
|
|
class Camera
|
|
|
|
{
|
|
|
|
Zeus::CFrustum m_frustum;
|
|
|
|
Zeus::CProjection m_projection;
|
|
|
|
Zeus::CVector3f m_position;
|
|
|
|
Zeus::CQuaternion m_orientation;
|
|
|
|
public:
|
|
|
|
|
2016-02-02 08:31:05 +00:00
|
|
|
void setPosition(const Zeus::CVector3f& position) { m_position = position; }
|
|
|
|
void setOrientation(const Zeus::CQuaternion& orientation) { m_orientation = orientation; }
|
2016-01-17 22:41:49 +00:00
|
|
|
|
|
|
|
const Zeus::CMatrix4f& projectionMatrix() const { return m_projection.getCachedMatrix(); }
|
|
|
|
const Zeus::CProjection& projection() const { return m_projection; }
|
|
|
|
|
|
|
|
virtual void think()
|
2016-02-02 08:31:05 +00:00
|
|
|
{}
|
2016-01-17 22:41:49 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // URDE_CAMERA_HPP
|