Add input layout
Add matrix buffer Convert camera to D3D11
This commit is contained in:
+10
-4
@@ -1,15 +1,21 @@
|
||||
#pragma once
|
||||
#include <d3d9.h>
|
||||
#include <DirectXMath.h>
|
||||
#include <Windows.h>
|
||||
|
||||
using namespace DirectX;
|
||||
|
||||
class Camera
|
||||
{
|
||||
public:
|
||||
UINT init(IDirect3DDevice9* pD3DDevice, UINT width, UINT height);
|
||||
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:
|
||||
D3DMATRIX _viewMatrix = {};
|
||||
D3DMATRIX _projectionMatrix = {};
|
||||
XMFLOAT4X4 _viewMatrix = {};
|
||||
XMFLOAT4X4 _projectionMatrix = {};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user