[android-developers] Can I use OpenGL to make Bitmap without GLSurfaceView
I would like to be able to use OpenGL in the Android to render into a
bitmap (or any other sort of buffer I can turn into one), without
actually displaying a GLSurfaceView.
The purpose is to dynamically create very complex images using OpenGL,
and then drawing those images on the canvas of a MapView.
I have tried overlaying a translucent GLSurfaceView over a MapView, my
preferred approach, but it has some problems:
1) I have complex menus I need to display from either the MapView or
the GLSurfaceView. I have been doing this using a ListView with its
own activity. Unfortunately, that activity pushes the MapView down the
stack. The result is a bit of flickering when the ListView activity
finishes, popping the MapView back to the top. Even worse, if I use
the ListView to overlay the GLSurfaceView (giving it the same complex
menu capabilities), when it finishes, the GLSurfaceView reappears but
the MapView doesn't display.
2)As soon as the GLSurfaceView is created, the MapView stops fetching
and rendering tiles. There seems to be no way to know when the MapView
is complete, so I have to delay an arbitrary interval before creating
the surfaceview.
3) When the GLSurfaceView is present, the MapView's built-in user
interface functions are obscured.
Anyone know if there is a way around any of these problems?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home