MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / drawTinted

Method drawTinted

game/state/tilemap/tileobject.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void TileObject::drawTinted(Renderer &r, sp<Image> sprite, Vec2<float> position, bool visible)
27{
28 if (visible)
29 {
30 r.draw(sprite, position);
31 }
32 else
33 {
34 r.drawTinted(sprite, position, COLOUR_BLACK);
35 }
36}
37
38void TileObject::removeFromMap()
39{

Callers 5

drawMethod · 0.45
drawStaticMethod · 0.45
drawFunction · 0.45
renderBaseMethod · 0.45
renderMethod · 0.45

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected