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

Function getBodyImageIndex

src/OpenLoco/src/Vehicles/VehicleDraw.cpp:210–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 }
209
210 uint32_t getBodyImageIndex(const VehicleObjectBodySprite& sprite, const Pitch pitch, const uint8_t yaw, const uint8_t roll, const uint8_t cargoIndex)
211 {
212 const auto pitchImageIndex = getPitchBodyImageIndex(sprite, pitch, yaw);
213 return pitchImageIndex + roll + cargoIndex;
214 }
215 uint32_t getBrakingImageIndex(const VehicleObjectBodySprite& sprite, const Pitch pitch, const uint8_t yaw)
216 {
217 const auto pitchImageIndex = getPitchBodyImageIndex(sprite, pitch, yaw);

Callers 3

getBodyItemsForVehicleFunction · 0.85
getDrawItemsForVehicleFunction · 0.85
paintBodyFunction · 0.85

Calls 1

getPitchBodyImageIndexFunction · 0.85

Tested by

no test coverage detected