I’m looking to take an OpenGL based library that I created in C++ and convert it (or rewrite it) using OpenGL ES 2.0 and integrating it with Objective-C in XCode on my Mac and integrating it with Java in Eclipse on my PC to (almost) simultaneously create an app for both Android and iOS. I’d like to keep my library in C++ if possible and mainly use my PC for the development.
The only thing is, I can’t seem to find anything online about importing the OpenGLES 2.0 framework onto my PC so I can start converting. I have found some nice examples of a library that is written using Objective-C++, but nothing of how to call anything OpenGLES-based in C++ using Java and the Android SDK. I know it’s a complex question, but I definitely think it’s possible. I just need to know where to start. Note that I have checked, and all of my functions that I’m using in OpenGL should be capable of being converted to OpenGLES 2.0 with little issues. (It’s pretty basic).
I’m looking to take an OpenGL based library that I created in C++ and
Share
To develop on PC using OpenGL-ES, I’d recommend you to give a try to ANGLE which translates OpenGL-ES calls to Direct3D. It is pretty mature as it’s used by Firefox and Chrome for WebGL, to work around OpenGL driver problems on Windows for some vendors.
For Android, you can take a look at Android NDK and NVidia Tegra sample code that will just show you what you ask.