Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PhFreeTiles()

Return a list of tiles to the internal tile pool

Synopsis:

void PhFreeTiles( PhTile_t * tile);

Library:

ph

Description:

This function returns the given list of tiles to the internal tile pool.

Photon maintains an internal pool of tiles because they're frequently used, and using a pool reduces the amount of time spent allocating and freeing the tiles. Use PhGetTile() to get a tile from the pool, and this function to return a list of tiles to the pool. Don't free() a PhTile_t structure.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

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

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