PhTilesBoundingRect()

Calculate the bounding box from a list of tiles

Synopsis:

 void PhTilesBoundingRect( const PhTile_t *tiles,
                           PhRect_t *r );

Arguments:

tiles
A list of PhTile_t structures you want to calculate a bounding box for. This list can't be empty.
r
A pointer to a PhRect_t structure in which the function stores the bounding box.

Library:

ph

Description:

This function takes an array of PhTile_t structures and calculates the bounding box for all the tiles in the list. The bounding box is put in the r argument.


Note: The list of tiles can't be empty.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

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

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