OpenTTD Source: ParentSpriteToDraw Struct Reference

OpenTTD Source 12.2

Data Fields
ParentSpriteToDraw Struct Reference

Parent sprite that should be drawn. More...

`#include <viewport_sprite_sorter.h>`

## Data Fields
int32 | xmin
| minimal world X coordinate of bounding box
int32 | ymin
| minimal world Y coordinate of bounding box
int32 | zmin
| minimal world Z coordinate of bounding box
int32 | x
| screen X coordinate of sprite
int32 | xmax
| maximal world X coordinate of bounding box
int32 | ymax
| maximal world Y coordinate of bounding box
int32 | zmax
| maximal world Z coordinate of bounding box
int32 | y
| screen Y coordinate of sprite
SpriteID | image
| sprite to draw
PaletteID | pal
| palette to use
const SubSprite * | sub
| only draw a rectangular part of the sprite
int32 | left
| minimal screen X coordinate of sprite (= x + sprite->x_offs), reference point for child sprites
int32 | top
| minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites
int32 | first_child
| the first child to draw.
uint32 | order
| Used during sprite sorting.

## Detailed Description

Parent sprite that should be drawn.

Definition at line 18 of file viewport_sprite_sorter.h.

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

- src/viewport_sprite_sorter.h