•  Back 
  •  Line-A Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-File$A00C - Undraw Sprite                                                Line-A

Function      Undraw a previously drawn sprite.

Parameters    Prior to calling this function, A2 should be loaded with
              a pointer to the 'sprite save block' defined when drawing
              the sprite. For the format of this data, see 'Draw Sprite'

Example       ; 'Undraw' sprite previously drawn from data
Binding       ; stored in savesprite.

                 lea      savesprite,a2
                 .dc.w    $A00C

Caveats       Register A6 is destroyed as a result of this call.

Comments      When 'undrawing' sprites, they should be removed in reverse
              order of drawing to avoid the possibility of creating
              garbage on screen.