38 virtual ~
Camera() =
default;
45 void setZNear(
float znear);
52 float getZNear()
const;
59 void setZFar(
float zfar);
66 float getZFar()
const;
74 const Math::Mat4x4f& getProjectionMatrix();
82 const Math::Mat4x4f& getViewMatrix();
92 void update(
const Renderer& renderer,
const View& renderView,
Queue& renderQueue);
94 void setRenderView(
View* renderView);
99 void needUpdateProj();
100 void needUpdateView();
105 explicit Camera(
const std::string& name);
107 virtual void updateProj() = 0;
118 bool _needUpdateProj{
true};
119 bool _needUpdateView{
true};
121 Math::Mat4x4f _projMatrix{Math::Mat4x4f::identity()};
122 Math::Mat4x4f _viewMatrix{Math::Mat4x4f::identity()};