OpenTTD Source: ParentSpriteToDraw Struct Reference

OpenTTD Source 14.1

Data Fields
ParentSpriteToDraw Struct Reference

Parent sprite that should be drawn. More...

`#include <viewport_sprite_sorter.h>`

## Data Fields
int32_t | xmin
| minimal world X coordinate of bounding box
int32_t | ymin
| minimal world Y coordinate of bounding box
int32_t | zmin
| minimal world Z coordinate of bounding box
int32_t | x
| screen X coordinate of sprite
int32_t | xmax
| maximal world X coordinate of bounding box
int32_t | ymax
| maximal world Y coordinate of bounding box
int32_t | zmax
| maximal world Z coordinate of bounding box
int32_t | 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_t | left
| minimal screen X coordinate of sprite (= x + sprite->x_offs), reference point for child sprites
int32_t | top
| minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites
int32_t | first_child
| the first child to draw.
uint32_t | order
| Used during sprite sorting.

## Detailed Description

Parent sprite that should be drawn.

Definition at line 17 of file viewport_sprite_sorter.h.

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

- src/viewport_sprite_sorter.h