diff options
author | crupest <crupest@outlook.com> | 2020-10-28 20:36:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-28 20:36:47 +0800 |
commit | cf07d193b97168048a72793c59f096504acf78a5 (patch) | |
tree | 8d14f6eba4140265931efc877d6371e8cf5cbf96 /src/win/native/WindowD2DPainter.cpp | |
parent | a09a9645d3c823e3559659dc1ddd213510755820 (diff) | |
download | cru-cf07d193b97168048a72793c59f096504acf78a5.tar.gz cru-cf07d193b97168048a72793c59f096504acf78a5.tar.bz2 cru-cf07d193b97168048a72793c59f096504acf78a5.zip |
...
Diffstat (limited to 'src/win/native/WindowD2DPainter.cpp')
-rw-r--r-- | src/win/native/WindowD2DPainter.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/win/native/WindowD2DPainter.cpp b/src/win/native/WindowD2DPainter.cpp deleted file mode 100644 index 7a97480b..00000000 --- a/src/win/native/WindowD2DPainter.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "WindowD2DPainter.hpp" - -#include "cru/win/graph/direct/Exception.hpp" -#include "cru/win/graph/direct/Factory.hpp" -#include "cru/win/native/WindowRenderTarget.hpp" - -namespace cru::platform::native::win { -using namespace cru::platform::graph::win::direct; - -WindowD2DPainter::WindowD2DPainter(WindowRenderTarget* render_target) - : D2DPainter(render_target->GetD2D1DeviceContext()), - render_target_(render_target) { - render_target_->GetD2D1DeviceContext()->BeginDraw(); -} - -WindowD2DPainter::~WindowD2DPainter() { EndDraw(); } - -void WindowD2DPainter::DoEndDraw() { - ThrowIfFailed(render_target_->GetD2D1DeviceContext()->EndDraw()); - render_target_->Present(); -} -} // namespace cru::platform::native::win |