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

As with VSprites, the gelsinfo list must be sorted before any bobs can be
displayed.  This is accomplished with the sortglist() function.  for bobs,
the system uses the position information to decide inter-Bob priorities,
if not explicitly set by using the bob.before and bob.after pointers.

Once the gelsinfo list has been sorted, the bobs in the list can be
displayed by calling drawglist().  this call should then be followed by a
call to waittof() if the application wants to be sure that the bobs are
rendered before proceeding.  Call these functions as follows:

    struct RastPort myRastPort = {0};  /* Of course, these have to be */
    struct ViewPort myViewPort = {0};  /* initialized...              */

    SortGList(&myRastPort);
    DrawGList(&myRastPort, &myViewPort);/* Draw the elements (Bobs only) */
    WaitTOF();


    Warning:
    --------
    If your gelsinfo list contains vsprites in addition to bobs, you
    must also call mrgcop() and loadview() to make all the gels
    visible.  Or, under Intuition, rethinkdisplay() must be called to
    make all the GELs visible.