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

Method DrawRect

libs/drape_frontend/debug_rect_renderer.cpp:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void 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
116void DebugRectRenderer::DrawArrow(ref_ptr<dp::GraphicsContext> context, ScreenBase const & screen,
117 dp::OverlayTree::DisplacementData const & data)

Callers 1

RenderDebugMethod · 0.80

Calls 2

ToVec4Function · 0.85
RenderMethod · 0.45

Tested by

no test coverage detected