2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function AddBob()
8 #include <graphics/gels.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
11 #include "gels_internal.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH2(void, AddBob
,
21 AROS_LHA(struct Bob
*, bob
, A0
),
22 AROS_LHA(struct RastPort
*, rp
, A1
),
25 struct GfxBase
*, GfxBase
, 16, Graphics
)
28 The Bob is linked into the current gel list via AddVSprite.
29 The Bob's flags are set up.
32 Bob = pointer to Bob to be added to gel list
33 rp = pointer to RastPort that has an initilized GelsInfo linked
34 to it (see InitGels()).
45 InitGels(), AddVSprite(), graphics/rastport.h, graphics/gels.h
51 *****************************************************************************/
55 if (NULL
!= rp
->GelsInfo
) {
58 * Check whether the head and tail VSprite
59 * were alone before. If so, then give them
60 * a IntVSprite structure now.
62 if (rp
->GelsInfo
->gelHead
->NextVSprite
==
63 rp
->GelsInfo
->gelTail
) {
64 _CreateIntVSprite(rp
->GelsInfo
->gelHead
, NULL
, GfxBase
);
65 _CreateIntVSprite(rp
->GelsInfo
->gelTail
, NULL
, GfxBase
);
68 bob
->Flags
|= BWAITING
;
69 AddVSprite (bob
->BobVSprite
, rp
);