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

Method SetPoint

libs/drape_frontend/circles_pack_shape.cpp:120–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void CirclesPackHandle::SetPoint(size_t index, m2::PointD const & position, float radius, dp::Color const & color)
121{
122 size_t const bufferIndex = index * dp::Batcher::VertexPerQuad;
123 ASSERT_LESS_OR_EQUAL(bufferIndex + dp::Batcher::VertexPerQuad, m_buffer.size(), ());
124
125 for (size_t i = 0; i < dp::Batcher::VertexPerQuad; ++i)
126 {
127 m_buffer[bufferIndex + i].m_position = glsl::vec3(position.x, position.y, radius);
128 m_buffer[bufferIndex + i].m_color = glsl::ToVec4(color);
129 }
130 m_needUpdate = true;
131}
132
133void CirclesPackHandle::Clear()
134{

Callers 3

RenderTrackMethod · 0.45
UpdatePreviewMethod · 0.45
ExtractRoadInfoMethod · 0.45

Calls 2

ToVec4Function · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected