Go to the documentation of this file.
14 #ifndef VIEWPORT_SPRITE_SORTER_H
15 #define VIEWPORT_SPRITE_SORTER_H
42 typedef std::vector<ParentSpriteToDraw*> ParentSpriteToSortVector;
50 bool ViewportSortParentSpritesSSE41Checker();
51 void ViewportSortParentSpritesSSE41(ParentSpriteToSortVector *psdv);
SpriteID image
sprite to draw
int32 x
screen X coordinate of sprite
uint32 order
Used during sprite sorting.
int32 zmax
maximal world Z coordinate of bounding box
int32 ymin
minimal world Y coordinate of bounding box
Used to only draw a part of the sprite.
int32 xmin
minimal world X coordinate of bounding box
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
PaletteID pal
palette to use
bool(* VpSorterChecker)()
Type for method for checking whether a viewport sprite sorter exists.
const SubSprite * sub
only draw a rectangular part of the sprite
void InitializeSpriteSorter()
Choose the "best" sprite sorter and set _vp_sprite_sorter.
int32 left
minimal screen X coordinate of sprite (= x + sprite->x_offs), reference point for child sprites
int32 zmin
minimal world Z coordinate of bounding box
int32 first_child
the first child to draw.
void(* VpSpriteSorter)(ParentSpriteToSortVector *psd)
Type for the actual viewport sprite sorter.
int32 ymax
maximal world Y coordinate of bounding box
int32 top
minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites
uint32 PaletteID
The number of the palette.
int32 y
screen Y coordinate of sprite
Parent sprite that should be drawn.
int32 xmax
maximal world X coordinate of bounding box