| 100 | } |
| 101 | |
| 102 | void DebugRectRenderer::DrawRect(ref_ptr<dp::GraphicsContext> context, ScreenBase const & screen, |
| 103 | m2::RectF const & rect, dp::Color const & color) |
| 104 | { |
| 105 | if (!m_isEnabled) |
| 106 | return; |
| 107 | |
| 108 | SetRect(context, rect, screen); |
| 109 | |
| 110 | gpu::DebugRectProgramParams params; |
| 111 | params.m_color = glsl::ToVec4(color); |
| 112 | |
| 113 | m_rectMeshes[m_currentRectMesh++]->Render(context, m_program, m_state, m_paramsSetter, params); |
| 114 | } |
| 115 | |
| 116 | void DebugRectRenderer::DrawArrow(ref_ptr<dp::GraphicsContext> context, ScreenBase const & screen, |
| 117 | dp::OverlayTree::DisplacementData const & data) |
no test coverage detected