core
This commit is contained in:
parent
ebacb9540c
commit
cfc9ca8349
10 changed files with 124 additions and 81 deletions
|
|
@ -13,16 +13,14 @@ module;
|
|||
|
||||
export module Crafter.Graphics:Camera;
|
||||
import :VulkanBuffer;
|
||||
import Crafter.Component;
|
||||
|
||||
namespace Crafter {
|
||||
struct CameraBufferData {
|
||||
glm::mat4 projection;
|
||||
glm::mat4 model;
|
||||
glm::mat4 view;
|
||||
};
|
||||
export class Camera {
|
||||
export class Camera : public Component {
|
||||
public:
|
||||
Buffer<CameraBufferData> buffer;
|
||||
glm::mat4 projection;
|
||||
glm::mat4 view;
|
||||
glm::mat4 projectionView;
|
||||
Camera();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue