Table of Contents | ||
|
||
GetSprites | ||
Purpose Returns the sprites in a layer or all the sprites in all the layers |
||
Protoype images CTileMngr::GetSprites (int i_layer = -1) |
||
Parameters
|
||
Description This function doesn't return the number of sprites in a layer, but a list of sprite IDs from that layer. You can either get all the sprites in all the sprite layers or pass in a specific layer number to get only the sprites in that layer. The return value is of type image, which is a typedefed STL list class. |
||
Use CTileMngr tile_mngr; // get all sprite IDs images img_sprites = tile_mngr.GetSprites(); // get sprite IDs for layer 2 images img_sprites = tile_mngr.GetSprites(2); |
||
|
||
|