PhSortTiles()

Sort a list of tiles

Synopsis:

PhTile_t *  PhSortTiles( PhTile_t *tiles );

Library:

ph

Description:

This function sorts the given list of tiles by the y coordinate then the x coordinate. Sorting a list of tiles usually results in a smaller merged list.


Note: Don't free() the list of tiles; instead, use PhFreeTiles() to return the tiles to the internal pool.

Returns:

The same pointer as tiles.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhAddMergeTiles(), PhClipTilings(), PhCoalesceTiles(), PhCopyTiles(), PhDeTranslateTiles(), PhFreeTiles(), PhGetTile(), PhIntersectTilings(), PhMergeTiles(), PhRectsToTiles(), PhTile_t, PhTilesToRects(), PhTranslateTiles()

Using damage tiles in the Raw Drawing and Animation chapter of the Photon Programmer's Guide