aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graph/direct/WindowPainter.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-28 20:36:47 +0800
committercrupest <crupest@outlook.com>2020-10-28 20:36:47 +0800
commitcf07d193b97168048a72793c59f096504acf78a5 (patch)
tree8d14f6eba4140265931efc877d6371e8cf5cbf96 /include/cru/win/graph/direct/WindowPainter.hpp
parenta09a9645d3c823e3559659dc1ddd213510755820 (diff)
downloadcru-cf07d193b97168048a72793c59f096504acf78a5.tar.gz
cru-cf07d193b97168048a72793c59f096504acf78a5.tar.bz2
cru-cf07d193b97168048a72793c59f096504acf78a5.zip
...
Diffstat (limited to 'include/cru/win/graph/direct/WindowPainter.hpp')
-rw-r--r--include/cru/win/graph/direct/WindowPainter.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/cru/win/graph/direct/WindowPainter.hpp b/include/cru/win/graph/direct/WindowPainter.hpp
new file mode 100644
index 00000000..53961586
--- /dev/null
+++ b/include/cru/win/graph/direct/WindowPainter.hpp
@@ -0,0 +1,21 @@
+#pragma once
+#include "Painter.hpp"
+#include "WindowRenderTarget.hpp"
+
+namespace cru::platform::graph::win::direct {
+class D2DWindowPainter : public graph::win::direct::D2DPainter {
+ public:
+ explicit D2DWindowPainter(D2DWindowRenderTarget* window);
+
+ CRU_DELETE_COPY(D2DWindowPainter)
+ CRU_DELETE_MOVE(D2DWindowPainter)
+
+ ~D2DWindowPainter() override;
+
+ protected:
+ void DoEndDraw() override;
+
+ private:
+ D2DWindowRenderTarget* render_target_;
+};
+} // namespace cru::platform::graph::win::direct