| 118 | } |
| 119 | |
| 120 | void 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 | |
| 133 | void CirclesPackHandle::Clear() |
| 134 | { |
no test coverage detected