Mercurial > mm7
diff DirectX11.cpp @ 2410:2d3c3d1dff0c
added RenderStruct.h
author | Ritor1 |
---|---|
date | Tue, 15 Jul 2014 15:44:45 +0600 |
parents | 8cee51ce4382 |
children | f4af3b203f65 |
line wrap: on
line diff
--- a/DirectX11.cpp Mon Jul 14 19:48:47 2014 +0600 +++ b/DirectX11.cpp Tue Jul 15 15:44:45 2014 +0600 @@ -1,6 +1,8 @@ +#define _CRT_SECURE_NO_WARNINGS #define WIN32_LEAN_AND_MEAN #include "DirectX11.h" +#include "RenderStruct.h" HRESULT D3D11::InitDevice() { @@ -54,7 +56,7 @@ // Теперь создаем задний буфер. Обратите внимание, в SDK // RenderTargetOutput - это передний буфер, а RenderTargetView - задний. - ID3D11Texture2D* pBackBuffer = NULL; + pBackBuffer = NULL; hr = g_pSwapChain->GetBuffer( 0, __uuidof(ID3D11Texture2D), (LPVOID*)&pBackBuffer ); if (FAILED(hr)) return hr; @@ -102,4 +104,4 @@ void Render() { -} \ No newline at end of file +}