I figured I better not post a new thread, so I'll ask more here. (Sorry!)
I can't figure out a good way to implement C structures that need to be used in order to return/push some functions.
Now I guess I could do it with a bank like we used to, but I think we're beyond that stage. :)
These are important C structures that must be created in order to create a host etc.
http://enet.cubik.org/Tutorial.html
Examples there. (Look at the Creating an ENet Server or Client)
For instance the ENetAddress structure, I ended up having to write a blitz type for it, but for ENetHost, it's not as easy, it's full of other object types and such within it.
Any chance of something like this:
Import "enet/enet.h"
Extern
type ENetAddress
type ENetHost
end extern
And so forth? Any ideas? That would be a ton of work in my oppinion, and I understand if it won't be included at this time (please consider it!). But could it be possible? I see that as the only way to really get alot of C libraries to work.. :)
Oh, and sorry if this has been discussed before -- which I hope it has. ;)
I can't figure out a good way to implement C structures that need to be used in order to return/push some functions.
Now I guess I could do it with a bank like we used to, but I think we're beyond that stage. :)
These are important C structures that must be created in order to create a host etc.
http://enet.cubik.org/Tutorial.html
Examples there. (Look at the Creating an ENet Server or Client)
For instance the ENetAddress structure, I ended up having to write a blitz type for it, but for ENetHost, it's not as easy, it's full of other object types and such within it.
Any chance of something like this:
Import "enet/enet.h"
Extern
type ENetAddress
type ENetHost
end extern
And so forth? Any ideas? That would be a ton of work in my oppinion, and I understand if it won't be included at this time (please consider it!). But could it be possible? I see that as the only way to really get alot of C libraries to work.. :)
Oh, and sorry if this has been discussed before -- which I hope it has. ;)