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/phtile_t.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/phtile_t.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/phtile_t.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/phtile_t.html on line 8
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:
- rect
- A
PhRect_t
structure that defines the rectangle.
- next
- A pointer to the next tile in the list.
|
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(),
PhRect_t
“Geometry data types”
in the Working with Code chapter, and
“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/phtile_t.html on line 118
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/phtile_t.html on line 118