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

transparent_layer.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ac12a03f4e43c12f6dc26184e5f507522cd2c4b (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/pointers.hpp"

#include "std/vector.hpp"

namespace dp
{
class GpuProgram;
class GpuProgramManager;
}

class ScreenBase;

namespace df
{

class TransparentLayer
{
public:
  TransparentLayer();
  ~TransparentLayer();

  void Render(uint32_t textureId, ref_ptr<dp::GpuProgramManager> mng);

private:
  void Build(ref_ptr<dp::GpuProgram> prg);

  uint32_t m_bufferId = 0;
  int8_t m_attributePosition;
  int8_t m_attributeTexCoord;

  vector<float> m_vertices;
};

}  // namespace df