The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Android Window handle.
Mike McLean
Guest

I am attempting to get the Ogre3d library to render in the window created by SDL so that I can use the SDL event handler. This works fine on linux and Windows. However, it crashes on Android if I use the recently added function to return the window handle. I am running the 2.0.3-8984 mercurial snapshot from a few days ago. Prior to using the built-in function for getting the window handle I used some JNI hackery to get it. I have done some tests and found that the 2 methods return different handles.

Here's the code for what I have been doing:


--
Sent from my Android device with K-9 Mail. Please excuse my brevity.