update
This commit is contained in:
parent
809617e6c4
commit
cb848e7109
7 changed files with 16 additions and 19 deletions
|
|
@ -6,6 +6,7 @@ export module Crafter.Graphics:Camera;
|
|||
import :VulkanBuffer;
|
||||
import Crafter.Component;
|
||||
import Crafter.Math;
|
||||
import Crafter.Event;
|
||||
|
||||
namespace Crafter {
|
||||
export class Camera : public Component {
|
||||
|
|
@ -13,6 +14,7 @@ namespace Crafter {
|
|||
MatrixRowMajor<float, 4, 4, 1> projection;
|
||||
MatrixRowMajor<float, 4, 4, 1> view;
|
||||
MatrixRowMajor<float, 4, 4, 1> projectionView;
|
||||
Event<void> onUpdate;
|
||||
Camera(float fov, float aspectRatio, float near, float far);
|
||||
void Update();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue