diff options
author | Neil <nyamatongwe@gmail.com> | 2025-02-12 13:19:09 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-02-12 13:19:09 +1100 |
commit | 1ff212a46192cb86fcb6451848b200898a28f6ff (patch) | |
tree | d3083f62f7c814c28fa73a57c3f2465e80259ab4 /win32/PlatWin.h | |
parent | 876871f0391de2730ac7562491d5cffb5fdd9ed1 (diff) | |
download | scintilla-mirror-1ff212a46192cb86fcb6451848b200898a28f6ff.tar.gz |
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.
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r-- | win32/PlatWin.h | 5 |
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>; |