2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-12-29 08:08:12 +00:00
|
|
|
|
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
|
|
|
|
2016-03-05 00:03:41 +00:00
|
|
|
namespace urde
|
2016-01-17 22:41:49 +00:00
|
|
|
{
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|