Added: matrix buffer

Added: world, view & projection matrices
Added: delta time calculation
Added: quad mesh
This commit is contained in:
2026-10-12 18:47:53 +02:00
parent daa04be788
commit d2a487a4f6
10 changed files with 139 additions and 12 deletions
+3 -1
View File
@@ -66,13 +66,15 @@ INT Direct3D::init(HWND hWnd, UINT width, UINT height, BOOL isFullscreen)
// 7. setup render pipeline (device context)
_pD3DDeviceContext->RSSetViewports(1, &viewport);
_pD3DDeviceContext->OMSetRenderTargets(1, &_pD3DRenderTargetView, nullptr); // TODO: create depth stencil view and set it for ouput merger stage
_pD3DDeviceContext->OMSetRenderTargets(1, &_pD3DRenderTargetView, nullptr); // TODO: create depth stencil view and set it for output merger stage
return 0;
}
void Direct3D::beginScene()
{
// TODO: implement a custom color via parameters
// TODO: (optional) implement a random color every frame
FLOAT color[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
// 8. clear the buffers