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

Function drawImage

src/OpenLoco/src/Graphics/SoftwareDrawingContext.cpp:295–308  ·  view source on GitHub ↗

0x00448C79

Source from the content-addressed store, hash-verified

293
294 // 0x00448C79
295 static void drawImage(const RenderTarget& rt, const Ui::Point& pos, const ImageId& image)
296 {
297 const auto* noiseImage = getNoiseMaskImageFromImage(image);
298 const auto palette = PaletteMap::getForImage(image);
299
300 if (!palette.has_value())
301 {
302 drawImagePaletteSet(rt, pos, image, PaletteMap::getDefault(), noiseImage);
303 }
304 else
305 {
306 drawImagePaletteSet(rt, pos, image, *palette, noiseImage);
307 }
308 }
309
310 // 0x00448C79
311 static void drawImage(const RenderTarget* rt, int16_t x, int16_t y, uint32_t image)

Callers 1

drawImageMethod · 0.70

Calls 4

getForImageFunction · 0.85
drawImagePaletteSetFunction · 0.85
getDefaultFunction · 0.85

Tested by

no test coverage detected