Hi,
I love using IMPORT as opposed to INLINE, its very clean looking and its shortened my code no end. One thing I have trouble with is importing arrays though.
This for example does not work...
IMPORT "C" int CreatePolygon2DShape(float* points, int count, float mass)
It would be great if array pointers could be added to the supported IMPORT types?
Cheers,
Ian
not possible. I have no idea how to wrap them and you must have some memory allocated and stuff.
A float* is not represent, anyway. On win32 it's "double". You'll need an inline wrapper here.
OK, that sounds pretty conclusive, I'll go for the INLINE option.
Cheers,
Ian