aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graph/direct/WindowPainter.hpp
blob: 539615865948d31b0a9b447d78334fc3a09a6463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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