[Previous] [Contents] [Index] [Next]

PhClipTilings()

Clip one list of tiles from another

Synopsis:

PhTile_t *PhClipTilings( 
             PhTile_t *tiles,
             PhTile_t const * const clip_tiles,
             PhTile_t **intersection );

Description:

This function clips the list of tiles pointed to by clip_tiles from the list pointed to by tiles. If intersection isn't NULL, it's set to point to the list of intersections that are clipped out of the tiles list.

The clip_tiles list isn't modified.


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

Returns:

A pointer to the clipped list of tiles, or NULL if clip_tiles encompasses tiles.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

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


[Previous] [Contents] [Index] [Next]