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

drape_api_builder.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18afa4f6b9e775056a1b7d79d04861ccfaa36a3a (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
#pragma once

#include "drape_frontend/drape_api.hpp"

#include "drape/glstate.hpp"
#include "drape/render_bucket.hpp"
#include "drape/texture_manager.hpp"

#include "std/string.hpp"
#include "std/utility.hpp"
#include "std/vector.hpp"

namespace df
{

struct DrapeApiRenderProperty
{
  string m_id;
  m2::PointD m_center;
  vector<pair<dp::GLState, drape_ptr<dp::RenderBucket>>> m_buckets;
};

class DrapeApiBuilder
{
public:
  DrapeApiBuilder() = default;

  void BuildLines(DrapeApi::TLines const & lines, ref_ptr<dp::TextureManager> textures,
                  vector<drape_ptr<DrapeApiRenderProperty>> & properties);
};

} // namespace df