-
Notifications
You must be signed in to change notification settings - Fork 0
/
GDIRenderer.h
31 lines (22 loc) · 820 Bytes
/
GDIRenderer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//---------------------------------------------------------------------------
#ifndef GDIRendererH
#define GDIRendererH
#include <SystemTypes.h>
#include <vector>
#include "IRenderer.h"
namespace AreaPrj {
class GDIRenderer : public IRenderer {
public:
static constexpr LPCTSTR GetDescription() { return _D( "GDI" ); }
protected:
virtual String DoGetName() const override { return GetDescription(); }
virtual void DoPrepareRendering( IModel const & Model ) override;
virtual void DoRender( Vcl::Graphics::TCanvas& Canvas ) const override;
private:
using Polygon = std::vector<System::Types::TPoint>;
using PolygonCont = std::vector<Polygon>;
PolygonCont polygons_;
};
} // End of namespace AreaPrj
//---------------------------------------------------------------------------
#endif