A list of rectangles
typedef struct Ph_tile {
PhRect_t rect;
struct Ph_tile *next;
} PhTile_t;
The PhTile_t structure is used to build linked lists of rectangles. It includes at least the following members:
![]() |
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. |
Photon
PhAddMergeTiles(), PhClipTilings(), PhCoalesceTiles(), PhCopyTiles(), PhDeTranslateTiles(), PhFreeTiles(), PhGetTile(), PhIntersectTilings(), PhMergeTiles(), PhRectsToTiles(), PhSortTiles(), PhTilesToRects(), PhTranslateTiles()