I have a Java application and I want the Ogre interface inside it. In particular, Ogre is a library of 3D game engines, which has many complex C ++ objects. I have several options for this.
1.) Use Raw JNI (Hard, because JNI is quite complex)
2.) Use SWIG + JNI (a bit simple ... but still JNI is involved)
3.) Use Lua and NO JNI (use the lua binding to Ogre) ... Basically, using Lua helps, because interacting with C ++ lib with Lua is much easier and calling Lua from java will not be too complicated.
4.) Use Ogre4j (binding Java to Ogre using JNI ... but this project is not updated with the latest version of Ogre)
Which one / looks like the best option for future maintenance / upgrades to Ogre?
Is option 3 possible for testing?
source
share