victory
This commit is contained in:
parent
27ba32cdf5
commit
05c19c3f94
11 changed files with 412 additions and 345 deletions
29
Crafter.Graphics-Camera.cppm
Normal file
29
Crafter.Graphics-Camera.cppm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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;
|
||||
|
||||
namespace Crafter {
|
||||
struct CameraBufferData {
|
||||
glm::mat4 projection;
|
||||
glm::mat4 model;
|
||||
glm::mat4 view;
|
||||
};
|
||||
export class Camera {
|
||||
public:
|
||||
vks::Buffer buffer;
|
||||
Camera();
|
||||
private:
|
||||
CameraBufferData data;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue