2016-01-17 22:41:49 +00:00
|
|
|
#ifndef URDE_CAMERA_HPP
|
|
|
|
#define URDE_CAMERA_HPP
|
2016-03-04 23:04:53 +00:00
|
|
|
#include "zeus/CProjection.hpp"
|
|
|
|
#include "zeus/CFrustum.hpp"
|
|
|
|
#include "zeus/CQuaternion.hpp"
|
|
|
|
#include "zeus/CVector3f.hpp"
|
|
|
|
#include "zeus/Math.hpp"
|
2016-01-17 22:41:49 +00:00
|
|
|
|
|
|
|
namespace URDE
|
|
|
|
{
|
|
|
|
class Camera
|
|
|
|
{
|
2016-03-04 23:04:53 +00:00
|
|
|
zeus::CFrustum m_frustum;
|
|
|
|
zeus::CProjection m_projection;
|
|
|
|
zeus::CVector3f m_position;
|
|
|
|
zeus::CQuaternion m_orientation;
|
2016-01-17 22:41:49 +00:00
|
|
|
public:
|
|
|
|
|
2016-03-04 23:04:53 +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
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
const zeus::CMatrix4f& projectionMatrix() const { return m_projection.getCachedMatrix(); }
|
|
|
|
const zeus::CProjection& projection() const { return m_projection; }
|
2016-01-17 22:41:49 +00:00
|
|
|
|
|
|
|
virtual void think()
|
2016-02-02 08:31:05 +00:00
|
|
|
{}
|
2016-01-17 22:41:49 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // URDE_CAMERA_HPP
|