Dear community,
I’d like to use pre-written complex code, written in C language, from within my LUA/Solar2D app.
I found information about Solar2d Native here
but after reading it several time I still cannot figure out how/where to include the C code or a C library?
It’s written to use Android Studio, but how do I combine the LUA- and C-code and the Solar2D simulator with the C code?
I appreciate any help or exampes or detailed description. Thank you very much.
It would be relatively easy to translate that code to lua. If you’re only interested in the “astrolib.cpp” code, it’s not a difficult task. But have you considered that there may be better options, better astronomical libraries? If you’re interested in astronomical coding for “practical” applications, I recommend the NavList community (fer3.com/arc).