tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / rom / graphics / initgmasks.c
blobd5095cf07aa1fb2a2e35d25912c1dc90c2dd0dfe
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function InitMasks()
6 Lang: english
7 */
8 #include <graphics/gels.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/graphics.h>
17 AROS_LH1(void, InitGMasks,
19 /* SYNOPSIS */
20 AROS_LHA(struct AnimOb *, anOb, A0),
22 /* LOCATION */
23 struct GfxBase *, GfxBase, 29, Graphics)
25 /* FUNCTION
26 For every component's sequence initialize the Masks by calling
27 InitMasks()
29 INPUTS
30 anOb = pointer to the AnimOb
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 InitGels(), InitMasks(), graphics/gels.h
43 INTERNALS
45 HISTORY
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
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;
73 AROS_LIBFUNC_EXIT
74 } /* InitGMasks */