#921 - DekuTree64 - Sun Jan 12, 2003 7:50 am
To pass a double-pointer just use u8 **map. Then you can access it like map[x][y] or whatever. Just picture the u8**, which points to an array of u8*s, each of which points to an array of u8s.
And if that's not confusing enough, I've actually had to use up to a u8**** before^_^
#1293 - ampz - Thu Jan 16, 2003 2:11 pm
This is how it's done.
void CheckCollision(U8 **map);
#2283 - AnthC - Sat Feb 01, 2003 8:54 am
You can have pointers to to arrays as such :-
u8 (*p)[32][32]=array;
u8 (*p)[32][32]=(u8 (*)[32][32])0x4000000;
etc.
Anth