D3D: Make the swapchain available outside of the namespace.
This commit reverts a part of pull request #579.
This commit is contained in:
parent
643c9ff173
commit
5f04e9c526
|
@ -31,7 +31,7 @@ namespace D3D
|
||||||
|
|
||||||
ID3D11Device* device = nullptr;
|
ID3D11Device* device = nullptr;
|
||||||
ID3D11DeviceContext* context = nullptr;
|
ID3D11DeviceContext* context = nullptr;
|
||||||
static IDXGISwapChain* swapchain = nullptr;
|
IDXGISwapChain* swapchain = nullptr;
|
||||||
D3D_FEATURE_LEVEL featlevel;
|
D3D_FEATURE_LEVEL featlevel;
|
||||||
D3DTexture2D* backbuf = nullptr;
|
D3DTexture2D* backbuf = nullptr;
|
||||||
HWND hWnd;
|
HWND hWnd;
|
||||||
|
|
|
@ -40,6 +40,7 @@ void Close();
|
||||||
|
|
||||||
extern ID3D11Device* device;
|
extern ID3D11Device* device;
|
||||||
extern ID3D11DeviceContext* context;
|
extern ID3D11DeviceContext* context;
|
||||||
|
extern IDXGISwapChain* swapchain;
|
||||||
extern HWND hWnd;
|
extern HWND hWnd;
|
||||||
extern bool bFrameInProgress;
|
extern bool bFrameInProgress;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue