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

PhRectsToTiles()

Create a list of tiles from an array of rectangles

Synopsis:

PhTile_t *  PhRectsToTiles( PhRect_t *rects,
                            int num_rects );

Description:

This function creates a list of tiles from the array of rectangles pointed to by rects, with num_rects entries.

Returns:

A pointer to the list of tiles.


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

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

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


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