Create a list of tiles from an array of rectangles
PhTile_t * PhRectsToTiles( PhRect_t *rects, int num_rects );
ph
This function creates a list of tiles from the array of rectangles pointed to by rects, with num_rects entries.
A pointer to the list of tiles.
Don't free() the list of tiles; instead, use PhFreeTiles() to return the tiles to the internal pool. |
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PhAddMergeTiles(), PhClipTilings(), PhCoalesceTiles(), PhCopyTiles(), PhDeTranslateTiles(), PhFreeTiles(), PhGetTile(), PhIntersectTilings(), PhMergeTiles(), PhRect_t, PhSortTiles(), PhTile_t, PhTilesToRects(), PhTranslateTiles()
“Using damage tiles” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide