Welcome to mirror list, hosted at ThFree Co, Russian Federation.

yopme_render_policy.hpp « render - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c6e05e4d317ae22d82ede67324dfb6e6c90371b4 (plain)
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
#pragma once

#include "render_policy.hpp"

#include "std/shared_ptr.hpp"

class Drawer;
class YopmeRP : public RenderPolicy
{
public:
  YopmeRP(RenderPolicy::Params const & p);
  virtual void DrawFrame(shared_ptr<PaintEvent> const & e, ScreenBase const & s);

  virtual void OnSize(int w, int h);

  void SetDrawingApiPin(bool isNeed, m2::PointD const & point);
  void SetDrawingMyLocation(bool isNeed, m2::PointD const & point);

private:
  static void DrawCircle(graphics::Screen * pScreen, m2::PointD const & pt);
  static void InsertOverlayCross(m2::PointD pivot, shared_ptr<graphics::OverlayStorage> const & overlayStorage);

  shared_ptr<GPUDrawer> m_offscreenDrawer;
  bool m_drawApiPin;
  m2::PointD m_apiPinPoint; // in pixels
  bool m_drawMyPosition;
  m2::PointD m_myPositionPoint; // in pixels
};