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

Function getG1Element

src/OpenLoco/src/Graphics/Gfx.cpp:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 }
308
309 G1Element* getG1Element(uint32_t imageId)
310 {
311 const auto id = getImageIndex(imageId);
312 if (id < _g1Elements.size())
313 {
314 return &_g1Elements[id];
315 }
316 return nullptr;
317 }
318
319 // 0x0046E07B
320 void loadCurrency()

Callers 15

drawBackgroundMethod · 0.85
drawFunction · 0.85
setMapPixelsOverallFunction · 0.85
setMapPixelsVehiclesFunction · 0.85
setMapPixelsIndustriesFunction · 0.85
setMapPixelsRoutesFunction · 0.85
setMapPixelsOwnershipFunction · 0.85
drawScrollFunction · 0.85
assignIndustryColoursFunction · 0.85
assignRouteColoursFunction · 0.85
paintToolDownScrollFunction · 0.85
prepareDrawFunction · 0.85

Calls 2

getImageIndexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected