Hi,
I am working on binding external C APIs (such as openGL) to my angelscript engine, and I am wondering if it is wise to directly bind the functions of the external API or if I should write function wrappers instead.
I ask this question because these APIs typically have different calling conventions on different platforms (all win32 APIs are stdcall for example), so I am wondering if it may cause issues. For example, would it break pre-compiled bytecode sharing between platforms?
By the way does anyone know a good binding generator script for C APIs (I have seen a few C++ binding tools that seem to be mostly prototypes for the moment, but C APIs should be much simpler)? It would be great if it could handle typedefs and literals #DEFINE directives.... :-)