PhRectsToTiles()

Create a list of tiles from an array of rectangles

Synopsis:

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

Library:

ph

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(), PhRect_t, PhSortTiles(), PhTile_t, PhTilesToRects(), PhTranslateTiles()

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