16 #ifndef VIEWPORT_SPRITE_SORTER_H 17 #define VIEWPORT_SPRITE_SORTER_H 52 bool ViewportSortParentSpritesSSE41Checker();
uint32 PaletteID
The number of the palette.
int32 zmin
minimal world Z coordinate of bounding box
int32 zmax
maximal world Z coordinate of bounding box
int32 top
minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites ...
void(* VpSpriteSorter)(ParentSpriteToSortVector *psd)
Type for the actual viewport sprite sorter.
Simple vector class that allows allocating an item without the need to copy this->data needlessly...
int32 ymin
minimal world Y coordinate of bounding box
int32 first_child
the first child to draw.
int32 x
screen X coordinate of sprite
Definition of base types and functions in a cross-platform compatible way.
int32 y
screen Y coordinate of sprite
int32 xmin
minimal world X coordinate of bounding box
const SubSprite * sub
only draw a rectangular part of the sprite
Parent sprite that should be drawn.
SpriteID image
sprite to draw
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
bool(* VpSorterChecker)()
Type for method for checking whether a viewport sprite sorter exists.
int32 ymax
maximal world Y coordinate of bounding box
int32 xmax
maximal world X coordinate of bounding box
void InitializeSpriteSorter()
Choose the "best" sprite sorter and set _vp_sprite_sorter.
Used to only draw a part of the sprite.
PaletteID pal
palette to use
int32 left
minimal screen X coordinate of sprite (= x + sprite->x_offs), reference point for child sprites ...
bool comparison_done
Used during sprite sorting: true if sprite has been compared with all other sprites.
Types related to the graphics and/or input devices.