OpenTTD Source: MutableSpriteCache Struct Reference

OpenTTD Source 12.2

Data Fields
MutableSpriteCache Struct Reference

Cache for vehicle sprites and values relating to whether they should be updated before drawing, or calculating the viewport. More...

`#include <vehicle_base.h>`

## Data Fields
Direction | last_direction
| Last direction we obtained sprites for.
bool | revalidate_before_draw
| We need to do a GetImage() and check bounds before drawing this sprite.
Rect | old_coord
| Co-ordinates from the last valid bounding box.
bool | is_viewport_candidate
| This vehicle can potentially be drawn on a viewport.
VehicleSpriteSeq | sprite_seq
| Vehicle appearance.

## Detailed Description

Cache for vehicle sprites and values relating to whether they should be updated before drawing, or calculating the viewport.

Definition at line 189 of file vehicle_base.h.

The documentation for this struct was generated from the following file:

- src/vehicle_base.h