From 1ff212a46192cb86fcb6451848b200898a28f6ff Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 12 Feb 2025 13:19:09 +1100 Subject: Implement Direct2D/DirectWrite 1.1. Add SC_TECHNOLOGY_DIRECT_WRITE_1 to use an explicit swap chain and ID2D1DeviceContext. Stop supporting DirectWrite on Windows Vista. --- win32/PlatWin.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'win32/PlatWin.h') 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; using HwndRenderTarget = std::unique_ptr; +using D2DeviceContext = std::unique_ptr; + +using D3D11Device = std::unique_ptr; +using D3D11DeviceContext = std::unique_ptr; HRESULT CreateDCRenderTarget(const D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties, DCRenderTarget &dcRT) noexcept; +extern HRESULT CreateD3D(D3D11Device &device, D3D11DeviceContext &context) noexcept; using WriteRenderingParams = std::unique_ptr; -- cgit v1.2.3