The "normal way" is to use the NDK. There is a separate Google group for that. But if you really need to port a large body of C++ code, that is the way to go. Otherwise you could have to rewrite using the Android Java OpenGL interface, which is basically JSR-239 with some "glue code" for connecting to Android's SurfaceView, the parent class of GLSurfaceView.
See http://developer.android.com/sdk/ndk/overview.html for more about the NDK. On Apr 23, 5:54 am, Ash McConnell <[email protected]> wrote: > Hi Folks, > > I am new to Android coding. I am trying to convert an iPhone app and > would like to keep the core c++ code in tact if possible (so that bugs > can be fixed in a cross platform way). > > I am currently using an extended GLSurfaceView to do rendering, I > believe this uses a separate thread and therefore doing OpenGL stuff > in C++ doesn't work. I tried to load a texture in C++ and pass the id > back to java, but it didn't work - the texture was blank. > > Should I be using an alternative to GLSurfaceView? Is there a > "normal" way of achieving what I am trying? > > Thanks for your help > All the best, > Ash -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

