Friday, November 6, 2009

[android-developers] Re: Question for OpenGL developers

In the API Demos, take a look at /ApiDemos/src/com/example/android/
apis/graphics/TranslucentGLSurfaceViewActivity.java. Sounds to me like
what you're looking for?

String

On Nov 6, 2:20 pm, Neilz <neilhorn...@googlemail.com> wrote:
> Hi all. I've created a number of simple games now, and have approached
> it with the following methodology:
>
> - I create a FrameLayout, where I have two or more Views sitting upon
> each other. The underlying views may have a background image, and text
> elements etc. The top layer will be my main game view, and have the
> animation drawn via the onDraw() method with canvas.
>
> - The background of the top layer will be set to Transparent, so that
> the other frames are still displayed.
>
> Now, I want to explore OpenGL to improve the graphical content. I have
> looked at various samples, and tried a few basic apps myself, but
> can't achieve the above model. Is it possible to mix views with
> OpenGL?
>
> For example, I want the same FrameLayout as explained above. The first
> frame will be a usual view containing an image. The top frame will be
> the OpenGL view, with a transparent background. Can this be done? If
> so, I would really appreciate some pointers as to how you set up the
> OpenGL view in this way.
>
> Many thanks.

--
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


Real Estate