[Previous] [Contents] [Index] [Next]

PhSortTiles()

Sort a list of tiles

Synopsis:

PhTile_t *  PhSortTiles( PhTile_t *tiles );

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()


[Previous] [Contents] [Index] [Next]