Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phaddmergetiles.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phaddmergetiles.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phaddmergetiles.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phaddmergetiles.html on line 8
Merge two list tiles, eliminating overlap
PhTile_t * PhAddMergeTiles( PhTile_t *tiles,
PhTile_t *add_tiles,
int *added );
- tiles
- A pointer to a list of tiles.
- add_tiles
- A pointer to a list of tiles that you want to merge into the
tiles list.
- added
- NULL, or a pointer to a location that the function sets to:
- 0 if tiles or add_tiles is NULL,
or tiles completely covers add_tiles
- 1 otherwise.
ph
PhAddMergeTiles() merges the list of tiles pointed to by
add_tiles into the list pointed to by tiles and
returns a pointer to the resulting list.
This function makes sure that the tiles in the merged list don't overlap.
A pointer to the merged list.
This isn't always the same as the tiles pointer.
|
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 |
PhClipTilings(),
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
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phaddmergetiles.html on line 151
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phaddmergetiles.html on line 151