[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

Once a true VSprite has been set up and initialized, the obvious next step
is to give it to the system by adding it to the GEL list. The VSprite may
then be manipulated as needed.  Before the program ends, the VSprite
should be removed from the GELs list by calling remvsprite(). a typical
calling sequence could be performed like so:

    struct VSprite  myVSprite = {0};
    struct RastPort myRastPort = {0};

    AddVSprite(&myVSprite, &myRastPort);

    /* Manipulate the VSprite as needed here */

    RemVSprite(&myVSprite);

The &myVSprite argument is a fully initialized vsprite structure and
&myRastPort is the rastport with which this vsprite is to be associated.
Note that you will probably not like the results if you try to
remvsprite() a vsprite that has not been added to the system with
addvsprite().  see the amiga rom kernel reference manual: includes and
Autodocs for additional information on these functions.