scapix-com / scapix

Scapix Language Bridge
https://www.scapix.com
Other
336 stars 25 forks source link

C# bindings for existing complex libraries #45

Open mariuszhermansdorfer opened 1 year ago

mariuszhermansdorfer commented 1 year ago

I'm trying to generate c# bindings for existing open-source c++ geometry processing libraries. One example would be the Polygon Mesh Processing library.

My naive attempt to reuse the example and just add the entire pmp source code to the example source folder fails miserably.

What would be the correct way of generating c# bindings for pmp?

Boris-Rasin commented 1 year ago

Current version of Scapix cannot directly handle complex C++ libraries with template interfaces.

Your best bet would be to create your own C++ wrapper code around such library, providing more limited (non templated) interface your C# code specifically needs.