| 114 | } |
| 115 | |
| 116 | void DebugRectRenderer::DrawArrow(ref_ptr<dp::GraphicsContext> context, ScreenBase const & screen, |
| 117 | dp::OverlayTree::DisplacementData const & data) |
| 118 | { |
| 119 | if (!m_isEnabled) |
| 120 | return; |
| 121 | |
| 122 | if (data.m_arrowStart.EqualDxDy(data.m_arrowEnd, 1e-5f)) |
| 123 | return; |
| 124 | |
| 125 | SetArrow(context, data.m_arrowStart, data.m_arrowEnd, screen); |
| 126 | |
| 127 | gpu::DebugRectProgramParams params; |
| 128 | params.m_color = glsl::ToVec4(data.m_arrowColor); |
| 129 | |
| 130 | m_arrowMeshes[m_currentArrowMesh++]->Render(context, m_program, m_state, m_paramsSetter, params); |
| 131 | } |
| 132 | |
| 133 | void DebugRectRenderer::FinishRendering() |
| 134 | { |
no test coverage detected