2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function InitArea()
8 #include <exec/types.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH3(void, InitArea
,
20 AROS_LHA(struct AreaInfo
*, areainfo
, A0
),
21 AROS_LHA(void * , buffer
, A1
),
22 AROS_LHA(WORD
, maxvectors
, D0
),
25 struct GfxBase
*, GfxBase
, 47, Graphics
)
28 This function initializes an areainfo structure. The size of the
29 passed pointer to the buffer should be 5 times as large as
30 maxvectors (in bytes).
33 areainfo - pointer to AreaInfo structure to be initialized
34 buffer - pointer to free memory to collect vectors
35 maxvectors - maximum number of vectors the buffer can hold.
38 Areainfo structure initialized such that it will hold the vectors
39 created by AreaMove, AreaDraw and AreaEllipse (AreaCircle).
48 AreaDraw() AreaMove() AreaEllipse() AreaCircle() graphics/rastport.h
54 *****************************************************************************/
58 areainfo
->VctrTbl
= buffer
;
59 areainfo
->VctrPtr
= buffer
;
60 areainfo
->FlagTbl
= (BYTE
*)(((IPTR
)buffer
)+(2*sizeof(WORD
)*maxvectors
));
61 areainfo
->FlagPtr
= (BYTE
*)(((IPTR
)buffer
)+(2*sizeof(WORD
)*maxvectors
));
63 areainfo
->MaxCount
= maxvectors
;