RakNet Wrapper 0.5 Released

Blitz3D Forums/Blitz3D Userlibs/RakNet Wrapper 0.5 Released


But then... in blitzmax, you can import all the raknet source and then, with a wrapper .cpp you can call them?


Basically, I see things like this:
- import in BlitzMax the wrapper you did, without any modification (I hope!)
- In this blitzMax file, add an extern..end extern command where you declare all functions you want to use (The equivalent of the .decls file for BlitzBasic)
- That's it!
So, it seems to me that this work could be pretty simple, like a couple of hours...... But I am sure a lot of issues will arise, and that won't be so simple...

That said, after you could go further, and wrap in BlitzMax the C function to use BlitzMax type to have object orientation!! But that's another level of complexity, and I am not sure it would be useful!

This is the example taken from the help file of BlitzMax:
//----- file: c_funcs.c -----
int Doubler( int x ){
	return x+x;
}

'----- file: app.bmx -----
Import "c_funcs.c"

Extern
	Function Doubler( x )
End Extern

Print Doubler(10)



Well, i have no time now, but in two months i could check it ;)


But you told us you haven't BlitzMax?! Let's see if someone would be interested to do that, if not, then we all count on you in 2 months!!!!!