aboutsummaryrefslogtreecommitdiff
path: root/src/win/native/window_painter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/native/window_painter.cpp')
-rw-r--r--src/win/native/window_painter.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/win/native/window_painter.cpp b/src/win/native/window_painter.cpp
deleted file mode 100644
index 463be128..00000000
--- a/src/win/native/window_painter.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "window_painter.hpp"
-
-#include "cru/win/exception.hpp"
-#include "cru/win/graph/win_native_factory.hpp"
-#include "cru/win/native/window_render_target.hpp"
-
-#include <cassert>
-
-namespace cru::win::native {
-WindowPainter::WindowPainter(WinNativeWindow* window)
- : WinPainter(window->GetWindowRenderTarget()
- ->GetWinNativeFactory()
- ->GetD2D1DeviceContext()),
- window_(window) {
- window->GetWindowRenderTarget()->SetAsTarget();
- window->GetWindowRenderTarget()
- ->GetWinNativeFactory()
- ->GetD2D1DeviceContext()
- ->BeginDraw();
-}
-
-WindowPainter::~WindowPainter() { End(); }
-
-void WindowPainter::DoEndDraw() {
- ThrowIfFailed(window_->GetWindowRenderTarget()
- ->GetWinNativeFactory()
- ->GetD2D1DeviceContext()
- ->EndDraw());
- window_->GetWindowRenderTarget()->Present();
-}
-} // namespace cru::win::native