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

Method DrawArrow

libs/drape_frontend/debug_rect_renderer.cpp:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void 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
133void DebugRectRenderer::FinishRendering()
134{

Callers 1

RenderSceneMethod · 0.80

Calls 3

ToVec4Function · 0.85
EqualDxDyMethod · 0.45
RenderMethod · 0.45

Tested by

no test coverage detected