aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r--win32/PlatWin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h
index f24689799..1b5b7b1b9 100644
--- a/win32/PlatWin.h
+++ b/win32/PlatWin.h
@@ -73,8 +73,13 @@ extern IDWriteFactory1 *pIDWriteFactory;
using DCRenderTarget = std::unique_ptr<ID2D1DCRenderTarget, UnknownReleaser>;
using HwndRenderTarget = std::unique_ptr<ID2D1HwndRenderTarget, UnknownReleaser>;
+using D2DeviceContext = std::unique_ptr<ID2D1DeviceContext, UnknownReleaser>;
+
+using D3D11Device = std::unique_ptr<ID3D11Device1, UnknownReleaser>;
+using D3D11DeviceContext = std::unique_ptr<ID3D11DeviceContext1, UnknownReleaser>;
HRESULT CreateDCRenderTarget(const D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties, DCRenderTarget &dcRT) noexcept;
+extern HRESULT CreateD3D(D3D11Device &device, D3D11DeviceContext &context) noexcept;
using WriteRenderingParams = std::unique_ptr<IDWriteRenderingParams1, UnknownReleaser>;