Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PhClipTilings

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PhClipTilings

[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 );

Library:

ph

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

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


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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026