This commit is contained in:
Jorijn van der Graaf 2025-05-05 06:00:35 +02:00
commit cb848e7109
7 changed files with 16 additions and 19 deletions

View file

@ -6,6 +6,7 @@ export module Crafter.Graphics:Camera;
import :VulkanBuffer;
import Crafter.Component;
import Crafter.Math;
import Crafter.Event;
namespace Crafter {
export class Camera : public Component {
@ -13,6 +14,7 @@ namespace Crafter {
MatrixRowMajor<float, 4, 4, 1> projection;
MatrixRowMajor<float, 4, 4, 1> view;
MatrixRowMajor<float, 4, 4, 1> projectionView;
Event<void> onUpdate;
Camera(float fov, float aspectRatio, float near, float far);
void Update();
};