26 lines
584 B
C++
26 lines
584 B
C++
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;
|
|
import :VulkanBuffer;
|
|
import Crafter.Component;
|
|
|
|
namespace Crafter {
|
|
export class Camera : public Component {
|
|
public:
|
|
glm::mat4 projection;
|
|
glm::mat4 view;
|
|
glm::mat4 projectionView;
|
|
Camera();
|
|
};
|
|
}
|