summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/d3d11/D3D11Window.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GfxDevice/d3d11/D3D11Window.h')
-rw-r--r--Runtime/GfxDevice/d3d11/D3D11Window.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/d3d11/D3D11Window.h b/Runtime/GfxDevice/d3d11/D3D11Window.h
new file mode 100644
index 0000000..e269cf2
--- /dev/null
+++ b/Runtime/GfxDevice/d3d11/D3D11Window.h
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "External/DirectX/builds/dx11include/d3d11.h"
+#include "Runtime/GfxDevice/GfxDeviceWindow.h"
+#include "Runtime/GfxDevice/GfxDeviceObjects.h"
+#include "TexturesD3D11.h"
+
+class D3D11Window : public GfxDeviceWindow
+{
+private:
+ IDXGISwapChain* m_SwapChain;
+ RenderColorSurfaceD3D11 m_BackBuffer;
+ RenderDepthSurfaceD3D11 m_DepthStencil;
+ int m_AntiAlias;
+
+public:
+ D3D11Window (HWND window, int width, int height, DepthBufferFormat depthFormat, int antiAlias);
+ ~D3D11Window ();
+
+ bool Reshape (int width, int height, DepthBufferFormat depthFormat, int antiAlias);
+
+ bool BeginRendering ();
+ bool EndRendering (bool presentContent);
+ void SetAsActiveWindow ();
+
+ RenderSurfaceHandle GetBackBuffer();
+ RenderSurfaceHandle GetDepthStencil();
+};