OpenTTD Source 20241224-master-gf74b0cf984
|
Types related to sprite sorting. More...
Go to the source code of this file.
Data Structures | |
struct | ParentSpriteToDraw |
Parent sprite that should be drawn. More... | |
Typedefs | |
typedef std::vector< ParentSpriteToDraw * > | ParentSpriteToSortVector |
typedef bool(* | VpSorterChecker) () |
Type for method for checking whether a viewport sprite sorter exists. | |
typedef void(* | VpSpriteSorter) (ParentSpriteToSortVector *psd) |
Type for the actual viewport sprite sorter. | |
Functions | |
void | InitializeSpriteSorter () |
Choose the "best" sprite sorter and set _vp_sprite_sorter. | |
Types related to sprite sorting.
Definition in file viewport_sprite_sorter.h.
typedef std::vector<ParentSpriteToDraw*> ParentSpriteToSortVector |
Definition at line 41 of file viewport_sprite_sorter.h.
typedef bool(* VpSorterChecker) () |
Type for method for checking whether a viewport sprite sorter exists.
Definition at line 44 of file viewport_sprite_sorter.h.
typedef void(* VpSpriteSorter) (ParentSpriteToSortVector *psd) |
Type for the actual viewport sprite sorter.
Definition at line 46 of file viewport_sprite_sorter.h.
void InitializeSpriteSorter | ( | ) |
Choose the "best" sprite sorter and set _vp_sprite_sorter.
Definition at line 3530 of file viewport.cpp.
References _vp_sprite_sorters.
Referenced by openttd_main().