MCPcopy Create free account
hub / github.com/comaps/comaps / GetMarkerBindingInfo

Function GetMarkerBindingInfo

libs/drape_frontend/my_position.cpp:49–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49dp::BindingInfo GetMarkerBindingInfo()
50{
51 dp::BindingInfo info(2);
52 dp::BindingDecl & normal = info.GetBindingDecl(0);
53 normal.m_attributeName = "a_normal";
54 normal.m_componentCount = 2;
55 normal.m_componentType = gl_const::GLFloatType;
56 normal.m_offset = 0;
57 normal.m_stride = sizeof(MarkerVertex);
58
59 dp::BindingDecl & texCoord = info.GetBindingDecl(1);
60 texCoord.m_attributeName = "a_colorTexCoords";
61 texCoord.m_componentCount = 2;
62 texCoord.m_componentType = gl_const::GLFloatType;
63 texCoord.m_offset = sizeof(glsl::vec2);
64 texCoord.m_stride = sizeof(MarkerVertex);
65
66 return info;
67}
68} // namespace mp
69
70MyPosition::MyPosition(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::TextureManager> mng)

Callers 2

CacheAccuracySectorMethod · 0.70
CacheSymbolMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected