Moves the BlockInfo up or down depending on the new sort order
The function iterates through the list of blocks to find the new position where the item should be stored and to find the item's block. Afterwards it moves this block to its new position and returns the block for further usage.
Stores all items that are (visible) on the screen.
TScreenBuffer contains a linked list of all items that should be visible on the screen, stored in .
Contains the necessary information to identify and draw items on the screen.
The coordinates on the screen. (as rectangle)
The coordinates for the OpenGL drawing function.
A reference to the item to be drawn.
Contains the high resolution (TexMap) texture if available and necessary.
Contains the default "normal" resolution graphic (Art).
The normals used for lighting on map tiles.
Holds the current state of the tile. This can be used for filtering.
If enabled, the tile is drawn as highlighted.
A reference to the next block (linked list).
Defines the state for screen blocks (see ).
The normal state of an item.
Specifies that the item should be "hidden". A fast way to remove it from the screen while keeping the sort order.
Defines the item as being a ghost item.
A ghost item is ignored in the hit test but still drawn as a normal (highlighted) tile. They are used to visualize an insert/map draw operation to the user.
A reference to TBlockInfo.