Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
CameraComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "scene/Component.h"
4#include <glm/mat4x4.hpp>
5
6namespace eng
7{
9 {
11 public:
12 void Update(float deltaTime) override;
13
14 glm::mat4 GetViewMatrix() const;
15 glm::mat4 GetProjectionMatrix(float aspect) const;
16
17 private:
18 float m_fov = 60.0f;
19 float m_nearPlane = 0.1f;
20 float m_farPlane = 1000.0f;
21 };
22}
glm::mat4 GetProjectionMatrix(float aspect) const
glm::mat4 GetViewMatrix() const
void Update(float deltaTime) override
#define COMPONENT(ComponentClass)
Definition Component.h:105