Display a GLCanvasobject in Android

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Display a GLCanvasobject in Android

kaeffin
Hello,

I hope someone can help me. I have a external library that create a GLCanvasobject. The Library use JOGL and is exported from Eclipse. Now I want to use this Library in an Androidapp. Everything is good and the GLCanvasobject is created.

But the problem is that i am not able to display this object..

When I create a new Eclipseproject and include my library I add the GLCanvasobject to a Panel and then i can see it.

What I have to do when I want to do this on Android. I tried a SurfaceView but there is only a function for normal CanvasObjects.

is that even possible?

Sorry for my bad English...

regards
Kevin
Reply | Threaded
Open this post in threaded view
|

Re: Display a GLCanvasobject in Android

gouessej
Administrator
Hi

Android doesn't support AWT and Swing, this limitation has nothing to do with JOGL itself. Therefore, you cannot use the AWT JOGL GLCanvas and the Swing JOGL GLJPanel under Android, you have to use the NEWT JOGL GLWindow instead.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Display a GLCanvasobject in Android

kaeffin
Thank you for this.

When i am right, I would get a GLWindow object instead of GLCanvas. And how can I add a GLWindow object in a Android View?


Reply | Threaded
Open this post in threaded view
|

Re: Display a GLCanvasobject in Android

gouessej
Administrator