Crafter.Graphics/Crafter.Graphics-Camera.cppm

18 lines
420 B
Text
Raw Normal View History

2025-04-26 23:05:11 +02:00
module;
#include <cstdint>
export module Crafter.Graphics:Camera;
2025-04-27 00:05:21 +02:00
import :VulkanBuffer;
2025-04-27 22:16:56 +02:00
import Crafter.Component;
2025-05-04 05:15:31 +02:00
import Crafter.Math;
2025-04-26 23:05:11 +02:00
namespace Crafter {
2025-04-27 22:16:56 +02:00
export class Camera : public Component {
public:
2025-05-04 05:15:31 +02:00
Matrix<float, 4, 4, 1> projection;
Matrix<float, 4, 4, 1> view;
Matrix<float, 4, 4, 1> projectionView;
Camera(float fov, float aspectRatio, float near, float far);
2025-04-26 23:05:11 +02:00
};
}