Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PhTilesToRects

PhTilesToRects

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PhTilesToRects()

Create an array of rectangles from a list of tiles

Synopsis:

PhRect_t * PhTilesToRects( PhTile_t *tiles,
                           int *num_rects );

Library:

ph

Description:

This function allocates an array of num_rects PhRect_t structures and fills it with the rectangles described by the list of tiles pointed to by tiles.


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

Returns:

A pointer to the array of rectangles.

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

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