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


Home
QNX Community Resources
QNX Documentation Library
PhIntersectTilings

PhIntersectTilings

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

PhIntersectTilings()

Determine the intersection of two lists of tiles

Synopsis:

PhTile_t *PhIntersectTilings( 
             PhTile_t const * const tile1,
             PhTile_t const * const tile2,
             unsigned short *num_intersect_tiles );

Library:

ph

Description:

This function creates a new list of tiles that's the intersection of the lists pointed to by tile1 and tile2. The original lists aren't modified.

Returns:

A pointer to the new list, or NULL if there's no intersection.


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

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