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

Method CacheCompass

libs/drape_frontend/gui/layer_render.cpp:338–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336#endif
337
338void LayerCacher::CacheCompass(ref_ptr<dp::GraphicsContext> context, Position const & position,
339 ref_ptr<LayerRenderer> renderer, ref_ptr<dp::TextureManager> textures)
340{
341 Compass compass = Compass(position);
342 drape_ptr<ShapeRenderer> shape =
343 compass.Draw(context, textures, std::bind(&DrapeGui::CallOnCompassTappedHandler, &DrapeGui::Instance()));
344
345 renderer->AddShapeRenderer(WIDGET_COMPASS, std::move(shape));
346}
347
348void LayerCacher::CacheRuler(ref_ptr<dp::GraphicsContext> context, Position const & position,
349 ref_ptr<LayerRenderer> renderer, ref_ptr<dp::TextureManager> textures)

Callers

nothing calls this directly

Calls 3

CompassClass · 0.85
AddShapeRendererMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected