2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function InitMasks()
8 #include <graphics/gels.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH1(void, InitGMasks
,
20 AROS_LHA(struct AnimOb
*, anOb
, A0
),
23 struct GfxBase
*, GfxBase
, 29, Graphics
)
26 For every component's sequence initialize the Masks by calling
30 anOb = pointer to the AnimOb
41 InitGels(), InitMasks(), graphics/gels.h
47 *****************************************************************************/
51 struct AnimComp
* CurAnimComp
= anOb
-> HeadComp
;
53 /* visit all the components of this AnimOb */
54 while (NULL
!= CurAnimComp
)
56 struct AnimComp
* CurSeqAnimComp
= CurAnimComp
;
57 /* visit all sequences of the current component of this AnimOb
58 * they might be connected like a ring (most probably are)!
62 InitMasks(CurSeqAnimComp
-> AnimBob
-> BobVSprite
);
64 /* go to the next sequence of this component */
65 CurSeqAnimComp
= CurSeqAnimComp
-> NextSeq
;
67 while (CurAnimComp
!= CurSeqAnimComp
&& NULL
!= CurAnimComp
);
69 /* go to next component */
70 CurAnimComp
= CurAnimComp
-> NextComp
;