Only display the status if there is something to display
[AROS.git] / rom / graphics / setcollision.c
blob0f366d8e10a177866c341e8970837da0f822486c
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function SetCollision()
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_LH3(void, SetCollision,
19 /* SYNOPSIS */
20 AROS_LHA(ULONG , num , D0),
21 AROS_LHA(VOID_FUNC , routine, A0),
22 AROS_LHA(struct GelsInfo *, GInfo , A1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 24, Graphics)
27 /* FUNCTION
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().
32 INPUTS
33 num = number of collision vector
34 routine = pointer to user's collision routine
35 GInfo = pointer to a GelsInfo structure
37 RESULT
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 InitGels(), graphics/rastport.h, graphics/gels.h
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 GInfo -> collHandler -> collPtrs[num] = (APTR)routine;
59 AROS_LIBFUNC_EXIT
60 } /* SetCollision */