UNLOCKSPRITE |
Top Previous Next |
Syntax INT = UNLOCKSPRITE(sprite as POINTER) Description Unlocks a previously locked sprite. Parameters sprite - Sprite pointer returned by LoadSprite. Return value The current lock count of the sprite or -1 on error. Remarks A locked sprite allows direct access to the image memory using standard pointers. Every call to LOCKSPRITE must be paired with a call to UNLOCKSPRITE or sprite drawing will fail. See Also: LOCKSPRITE, LOADSPRITE, GETSPRITEPITCH, GETSPRITEPOINTER Example usage DEF pBuffer as POINTER |