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

Function bwDrawBox

bwapi/BWAPI/Source/Graphics.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void bwDrawBox(int x, int y, int w, int h, int color, BWAPI::CoordinateType::Enum ctype)
31{
32 convertCoordType(x, y, ctype);
33
34 for ( int i = y; i < y+h; ++i )
35 BW::BWDATA::GameScreenBuffer.drawLine(x, i, x+w, i, static_cast<u8>(color));
36}
37
38void bwDrawDot(int x, int y, int color, BWAPI::CoordinateType::Enum ctype)
39{

Callers 1

drawShapesMethod · 0.85

Calls 2

convertCoordTypeFunction · 0.85
drawLineMethod · 0.45

Tested by

no test coverage detected