Binary releases for Windows, Linux and macOS are available at the Github Releases page.
So we only need to import the headers but I don't really have time to do it at the moment as I'm full time
on a project developing a hydrofoil flight control system.
I started to port… But it's not that easy. Most The functions from this lib have "byval" paramaters. purebasic doesn't support this kind of parameters. I ported ~50%. The 2D and UI-part is full ported… But not the 3D.
EnableExplicit
Define a=4
Define b=4
Procedure ByVal(variable)
variable = 5
EndProcedure
Procedure ByRef(*variable)
PokeI(*variable, 5)
EndProcedure
ByVal(a)
Debug a ;still 4, as the procedure didn't touch the variable "a" but only copied its value into the local variable "variable"
ByRef(@b) ;submit a pointer to variable, instead of the variable itself.
Debug b ;it's now 5, because the procedure was able to modify the original variable because it knows the memory-address of the variable in the main scope
What's the situation like, where you think it doesn't?
I haven't taken a close look at the library in question, but I'm guessing that Cyllceaux refers to passing structures byval. In this case, one would have to manually push through structure field values individually in order to interface with the library. Nothing some helper functions couldn't solve.
I looked in the forum with a lot of possibilities to solve the problem, but non of them workes good enough. I don't want to write wrapper methods or expand the DLL just for PB.