Linux compatible .Net bindings for irrLicht

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
jimmy00784
Posts: 20
Joined: Thu Jun 07, 2012 12:35 pm
Location: Smyrna, TN
Contact:

Re: Linux compatible .Net bindings for irrLicht

Post by jimmy00784 »

roxaz wrote:i dont quite know how typemaps work, tried experimenting with them but without much success.
They are plenty fun once you get a hang of them :P
roxaz wrote:looking at your changes so far i see some memory leaks (unless swig does free up those objects, but i doubt it). for example in %typemap(out) path&. sure heap allocation is needed? i think i had typemaps that compile with stack allocation. also new char[$1->size()] does not include null terminator. doesnt something like $result = $1->c_str() work?
I actually did start out exactly how you suggested, however got invalid cast errors during compile time. Attempting to force (void *) or (char *) cast allowed compiling but caused runtime errors and seg faults. I understand the memory leaks resulting from my approach, however, it is only a stop gap measure to get things running.
roxaz wrote:and finally including headers one by one works, but like in previous case should new header be added it will require manual update of wrapper while with auto-includes new code would be wrapped automatically most of the time.
Agree with you on that as well. I'll revisit the -includeallheaders approach later again after getting the wrapper completed this way.
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Re: Linux compatible .Net bindings for irrLicht

Post by roxaz »

heads up - CppSharp is releasing compiled binaries now too. With latest version i could build irrlicht bindings already, however cpp part (exposing inline functions) does not compile so i did not test actual bindings. Produces badass-looking .cs wrapper code though.
jimmy00784
Posts: 20
Joined: Thu Jun 07, 2012 12:35 pm
Location: Smyrna, TN
Contact:

Re: Linux compatible .Net bindings for irrLicht

Post by jimmy00784 »

Great news. Will monitor its progress.
Post Reply