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


Home
QNX Community Resources
QNX Documentation Library
PhRectsToTiles

PhRectsToTiles

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

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