Files
david c6fdf567b7 Add matrix buffer
Convert camera to D3D11
Add world, view & projection matrix exposing
2026-11-27 12:17:17 +01:00

22 lines
409 B
C++

#pragma once
#include <DirectXMath.h>
#include <Windows.h>
using namespace DirectX;
class Camera
{
public:
UINT init(UINT width, UINT height);
void update(FLOAT dt);
void deInit();
const XMFLOAT4X4& getViewMatrix() const { return _viewMatrix; }
const XMFLOAT4X4& getProjectionMatrix() const { return _projectionMatrix; }
private:
XMFLOAT4X4 _viewMatrix = {};
XMFLOAT4X4 _projectionMatrix = {};
};