Thank you guys, one last question :
The I have read about the uintptr_t type and I was wondering if I could (and if so how) use the uintptr_t state parameter to pass a int array.
As of now my do_line looks like this :
do_line(NULL, robX, robY, sensX, sensY, (int) collidedData, CheckPixel);
and I need the (int) collidedData in my step part. collideData is define as int collideData;
so should I use it like this:
al_draw_soft_line(&v1, &v2, (uintptr_t) collideData, First, CheckPixel, Draw);
and then in CheckPixel do (int)collideData?
Or should I Put my CheckPixel function inside my draw?