OpenTTD Source 20241224-master-gee860a5c8e
|
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. | |
Parent sprite that should be drawn.
Definition at line 17 of file viewport_sprite_sorter.h.
int32_t ParentSpriteToDraw::first_child |
the first child to draw.
Definition at line 37 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
SpriteID ParentSpriteToDraw::image |
sprite to draw
Definition at line 30 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::left |
minimal screen X coordinate of sprite (= x + sprite->x_offs), reference point for child sprites
Definition at line 34 of file viewport_sprite_sorter.h.
Referenced by AddCombinedSprite(), and AddSortableSpriteToDraw().
uint32_t ParentSpriteToDraw::order |
Used during sprite sorting.
Definition at line 38 of file viewport_sprite_sorter.h.
PaletteID ParentSpriteToDraw::pal |
palette to use
Definition at line 31 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
const SubSprite* ParentSpriteToDraw::sub |
only draw a rectangular part of the sprite
Definition at line 32 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::top |
minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites
Definition at line 35 of file viewport_sprite_sorter.h.
Referenced by AddCombinedSprite(), and AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::x |
screen X coordinate of sprite
Definition at line 22 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::xmax |
maximal world X coordinate of bounding box
Definition at line 25 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::xmin |
minimal world X coordinate of bounding box
Definition at line 19 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::y |
screen Y coordinate of sprite
Definition at line 28 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::ymax |
maximal world Y coordinate of bounding box
Definition at line 26 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::ymin |
minimal world Y coordinate of bounding box
Definition at line 20 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::zmax |
maximal world Z coordinate of bounding box
Definition at line 27 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().
int32_t ParentSpriteToDraw::zmin |
minimal world Z coordinate of bounding box
Definition at line 21 of file viewport_sprite_sorter.h.
Referenced by AddSortableSpriteToDraw().