You can put a 'regular' View on top of your GLSurfaceView (call
addContentView with the regular View). If your regular view has areas
with a transparent background, you can combine 2D controls with your
3D OpenGL.

But it looks like you want to be able to apply OpenGL style operations
on regular 2D views (e.g. have a 3D cube-like ViewFlipper, with 6
screens, one on each side). Is this correct?

I think this can be done. However, i'm worried about the performance.

When the user flips, moving from one screen to another, you'd have to
get the bitmap from the current screen (drawing cache?), make a
texture out of it apply it to the 3D cube, hide the current regular
screen (view), show the GLSurface View, rotate the cube to the next
screen, hide the GLSurface View, show the next screen.

I have not tried the above, but that's what i would try first :).


Another possibility: Maybe it is possible to create your own custom
Animations...

On Aug 19, 10:34 am, Deren <[email protected]> wrote:
> I'd like to have a "regular" UI, with regular layouts and views (like
> linear layouts and buttons and some custom layouts). Then, when
> something happens, I'd like to get the cache bitmap of my application
> and use it as a texture. One application would be to create a cube
> effect to switch between different Views (like a ViewFlipper, but
> using OpenGL). Hope it made sense.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to