MCPcopy Create free account
hub / github.com/ZDoom/Raze / DrawOverheadMap

Function DrawOverheadMap

source/core/automap.cpp:595–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593//---------------------------------------------------------------------------
594
595void DrawOverheadMap(const DVector2& plxy, const DAngle pl_angle, double const interpfrac)
596{
597 if (am_followplayer || follow.X == INT_MAX)
598 {
599 follow = plxy;
600 }
601
602 follow_a = am_rotate ? pl_angle : DAngle270;
603 const DVector2 xydim = DVector2(screen->GetWidth(), screen->GetHeight()) * 0.5;
604 const DVector2 avect = follow_a.ToVector();
605
606 AutomapControl(avect);
607
608 if (automapMode == am_full)
609 {
610 twod->ClearScreen();
611 renderDrawMapView(follow, avect, xydim);
612 }
613
614 drawredlines(follow, avect, xydim);
615 drawwhitelines(follow, avect, xydim);
616 if (!gi->DrawAutomapPlayer(plxy, follow, follow_a, xydim, gZoom, interpfrac))
617 DrawPlayerArrow(follow, follow_a, gZoom, pl_angle);
618
619}
620
621//---------------------------------------------------------------------------
622//

Callers 4

drawoverlaysFunction · 0.85
drawscreenFunction · 0.85
DrawMapFunction · 0.85
DrawMapFunction · 0.85

Calls 10

AutomapControlFunction · 0.85
renderDrawMapViewFunction · 0.85
drawredlinesFunction · 0.85
drawwhitelinesFunction · 0.85
DrawPlayerArrowFunction · 0.85
ToVectorMethod · 0.80
GetWidthMethod · 0.45
GetHeightMethod · 0.45
ClearScreenMethod · 0.45
DrawAutomapPlayerMethod · 0.45

Tested by

no test coverage detected