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

PhTile_t

A list of rectangles

Synopsis:

typedef struct Ph_tile { 
    PhRect_t rect;
    struct Ph_tile *next;
    } PhTile_t;

Description:

The PhTile_t structure is used to build linked lists of rectangles. It includes at least the following members:

rect
The rectangle.
next
A pointer to the next tile in the list.

Note: Photon maintains an internal pool of tiles because they're frequently used, and using a pool reduces the amount of time spent allocating and freeing the tiles. Use PhGetTile() to get a tile from the pool, and PhFreeTiles() to return a list of tiles to the pool.

Classification:

Photon

See also:

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


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