OpenTTD Source: src/viewport_sprite_sorter.h File Reference

OpenTTD Source 15.0-RC2

Data Structures | Typedefs | Functions
viewport_sprite_sorter.h File Reference

Types related to sprite sorting. More...

`#include "gfx_type.h"`

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.

## Detailed Description

Types related to sprite sorting.

Definition in file viewport_sprite_sorter.h.

## Typedef Documentation

## ◆ ParentSpriteToSortVector

typedef std::vector<ParentSpriteToDraw*> ParentSpriteToSortVector

Definition at line 40 of file viewport_sprite_sorter.h.

## ◆ VpSorterChecker

typedef bool(* VpSorterChecker) ()

Type for method for checking whether a viewport sprite sorter exists.

Definition at line 43 of file viewport_sprite_sorter.h.

## ◆ VpSpriteSorter

typedef void(* VpSpriteSorter) (ParentSpriteToSortVector *psd)

Type for the actual viewport sprite sorter.

Definition at line 45 of file viewport_sprite_sorter.h.

## Function Documentation

## ◆ InitializeSpriteSorter()

void InitializeSpriteSorter | ( |  | ) |

Choose the "best" sprite sorter and set _vp_sprite_sorter.

Definition at line 3605 of file viewport.cpp.

References _vp_sprite_sorters.

Referenced by openttd_main().