Crafter.Graphics/Crafter.Graphics-Camera.cppm
2025-05-05 06:00:35 +02:00

21 lines
519 B
C++

module;
#include <cstdint>
export module Crafter.Graphics:Camera;
import :VulkanBuffer;
import Crafter.Component;
import Crafter.Math;
import Crafter.Event;
namespace Crafter {
export class Camera : public Component {
public:
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();
};
}