Global AI API question
Posted: 21 Jul 2005, 21:47
OK, so looking at the Global AI API, there are quite a few methods for getting various maps like height map, LOS map etc. and they return like a char* or a float* or something like that, instead of char ** or float **.
What I want to know is, how is the data arranged? Is it really a 1D array, or is it actaully a 2D array written down as a 1D array. Or am I missing something? (probably)
Can someone please explain how to use the return values from these functions? Example code would be good. I'm looking for something like this:
Which is my best guess, but probably wrong.
Ta.
Munch
What I want to know is, how is the data arranged? Is it really a 1D array, or is it actaully a 2D array written down as a 1D array. Or am I missing something? (probably)
Can someone please explain how to use the return values from these functions? Example code would be good. I'm looking for something like this:
Code: Select all
unsigned char ** metalMap = (unsigned char **) GetMetalMap()
Ta.
Munch