Added: matrix buffer
Added: world, view & projection matrices Added: delta time calculation Added: quad mesh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user