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

Function bwDrawLine

bwapi/BWAPI/Source/Graphics.cpp:48–54  ·  view source on GitHub ↗

Assume x1 != x2 and y1 != y2

Source from the content-addressed store, hash-verified

46
47// Assume x1 != x2 and y1 != y2
48void bwDrawLine(int x1, int y1, int x2, int y2, int color, BWAPI::CoordinateType::Enum ctype)
49{
50 convertCoordType(x1,y1,ctype);
51 convertCoordType(x2,y2,ctype);
52
53 BW::BWDATA::GameScreenBuffer.drawLine(x1, y1, x2, y2, static_cast<u8>(color));
54}
55
56void bwDrawText(int x, int y, const char* ptext, BWAPI::CoordinateType::Enum ctype, char size)
57{

Callers 1

drawShapesMethod · 0.85

Calls 2

convertCoordTypeFunction · 0.85
drawLineMethod · 0.45

Tested by

no test coverage detected