Table of Contents | ||
|
||
RemoveAllSprites | ||
Purpose Removes all the sprites to be rendered on a given layer or every layer |
||
Protoype void CTileMngr::RemoveAllSprites (int i_layer = -1) |
||
Parameters
|
||
Description This function removes sprite IDs from a layer, which means the sprites are no longer rendered with the map. The original sprite objects remain intact, however. If you do not specify a layer to remove IDs from, all sprite layers will be affected. Note also that the sprite layers themselves will still exist, they will just be empty. |
||
Use CTileMngr tile_mngr; // remove only sprites on layer 3 tile_mngr.RemoveAllSprites(3); // remove all sprites in all sprite layeers tile_mngr.RemoveAllSprites(); |
||
|
||
|