MCPcopy Create free account
hub / github.com/bwapi/bwapi / vDrawText

Method vDrawText

bwapi/BWAPIClient/Source/GameImpl.cpp:780–787  ·  view source on GitHub ↗

-------------------------------------------------- DRAW TEXT ---------------------------------------------

Source from the content-addressed store, hash-verified

778 }
779 //-------------------------------------------------- DRAW TEXT ---------------------------------------------
780 void GameImpl::vDrawText(CoordinateType::Enum ctype, int x, int y, const char *format, va_list arg)
781 {
782 if ( !data->hasGUI ) return;
783 char buffer[2048];
784 VSNPrintf(buffer, format, arg);
785 BWAPIC::Shape s(BWAPIC::ShapeType::Text,ctype,x,y,0,0,0,textSize,0,false);
786 addText(s,buffer);
787 }
788 //--------------------------------------------------- DRAW BOX ---------------------------------------------
789 void GameImpl::drawBox(CoordinateType::Enum ctype, int left, int top, int right, int bottom, Color color, bool isSolid)
790 {

Callers 4

drawTextMethod · 0.45
drawTextMapMethod · 0.45
drawTextMouseMethod · 0.45
drawTextScreenMethod · 0.45

Calls 1

VSNPrintfFunction · 0.70

Tested by

no test coverage detected