Table of Contents | ||
|
||
RemoveAllAnimations | ||
Purpose Removes all animations and any timers associated with them |
||
Protoype void CSpriteMngr::RemoveAllAnimations () |
||
Description There are two ways to use this function. If there is a locked sprite when this function is called, then only the animations assigned to that sprite object will be removed. However, if there is no locked sprite when this function is called then all animations in all sprite objects will be removed. Timers for the animations will be removed as well to immediately free up resources. |
||
Use CSpriteMngr sprite; // only remove my_sprite animations sprite.LockSprite("my_sprite"); sprite.RemoveAllAnimations(); sprite.UnlockSprite(); // remove *all* animations sprite.RemoveAllAnimations(); |
||
|
||
|