Is there a way in SDL to flatten an n-dimensional array?
Everything I've tried so far seems to require knowing the array size in advance
and accessing specifically: flat[foo] = array[x][y]
It looks like the only way to make a method which can take an array as input and
flatten it will need to have a switch statement in it to fork to appropriately
deep loops. I don't like that though.
Any other options?
Thanks,
Ian
Post a reply to this message
|