Crafter.Graphics/Crafter.Graphics-Camera.cppm

26 lines
584 B
Text
Raw Normal View History

2025-04-26 23:05:11 +02:00
module;
#include <cstdint>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "VulkanBuffer.h"
#include "camera.hpp"
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-04-26 23:05:11 +02:00
namespace Crafter {
2025-04-27 22:16:56 +02:00
export class Camera : public Component {
public:
2025-04-26 23:05:11 +02:00
glm::mat4 projection;
glm::mat4 view;
2025-04-27 22:16:56 +02:00
glm::mat4 projectionView;
2025-04-26 23:05:11 +02:00
Camera();
};
}