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

Method drawImage

bwapi/BWAPI/Source/BW/CImage.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void CImage::drawImage()
55 {
56 if ( !(this->flags & 0x40) &&
57 this->grpBounds.bottom > 0 &&
58 this->grpBounds.right > 0 )
59 {
60 if ( (this->flags & 1) /*|| this->needsRefresh()*/ )
61 {
62 rect rctDraw = { this->grpBounds.left, this->grpBounds.top, this->grpBounds.right, this->grpBounds.bottom };
63 this->renderFunction(this->screenPosition.x, this->screenPosition.y, this->getCurrentFrame(), &rctDraw, (int)this->coloringData);
64 }
65 }
66 this->flags &= ~1; // Clear Redraw bit
67 }
68}

Callers 1

drawMethod · 0.80

Calls 1

getCurrentFrameMethod · 0.95

Tested by

no test coverage detected