module; #include #include "VulkanBuffer.h" #include #include #include module Crafter.Graphics; import Crafter.Math; import Crafter.Event; using namespace Crafter; Camera::Camera(float fov, float aspectRatio, float near, float far) { projection = MatrixRowMajor::Perspective(fov, aspectRatio, near, far); view = MatrixRowMajor::Identity(); } void Camera::Update() { projectionView = projection*view; onUpdate.Invoke(); }