blob: d229f52858074739db249c7cbec00f49f1511347 (
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
29
30
31
32
33
34
35
36
|
#pragma once
#include "drape_frontend/map_shape.hpp"
#include "drape_frontend/shape_view_params.hpp"
#include "geometry/spline.hpp"
namespace df
{
class PathTextLayout;
class PathTextShape : public MapShape
{
public:
PathTextShape(m2::SharedSpline const & spline, PathTextViewParams const & params);
void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const override;
MapShapeType GetType() const override { return MapShapeType::OverlayType; }
private:
uint64_t GetOverlayPriority(size_t textIndex, bool followingMode) const;
void DrawPathTextPlain(ref_ptr<dp::TextureManager> textures,
ref_ptr<dp::Batcher> batcher,
unique_ptr<PathTextLayout> && layout,
vector<float> const & offests) const;
void DrawPathTextOutlined(ref_ptr<dp::TextureManager> textures,
ref_ptr<dp::Batcher> batcher,
unique_ptr<PathTextLayout> && layout,
vector<float> const & offsets) const;
m2::SharedSpline m_spline;
PathTextViewParams m_params;
};
} // namespace df
|