2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function SetCollision()
8 #include <graphics/gels.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH3(void, SetCollision
,
20 AROS_LHA(ULONG
, num
, D0
),
21 AROS_LHA(VOID_FUNC
, routine
, A0
),
22 AROS_LHA(struct GelsInfo
*, GInfo
, A1
),
25 struct GfxBase
*, GfxBase
, 24, Graphics
)
28 Call this function to set a specified entry (num) in the
29 user's collision vector table with the address of the
30 routine to be called by DoCollision().
33 num = number of collision vector
34 routine = pointer to user's collision routine
35 GInfo = pointer to a GelsInfo structure
46 InitGels(), graphics/rastport.h, graphics/gels.h
52 *****************************************************************************/
56 GInfo
-> collHandler
-> collPtrs
[num
] = (APTR
)routine
;