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
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
class Camera {
|
|
|
|
zeus::CFrustum m_frustum;
|
|
|
|
zeus::CProjection m_projection;
|
|
|
|
zeus::CVector3f m_position;
|
|
|
|
zeus::CQuaternion m_orientation;
|
2016-01-17 22:41:49 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
public:
|
|
|
|
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
|
|
|
|
2018-12-08 05:30:43 +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
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual void think() {}
|
2016-01-17 22:41:49 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|