Setting translucency will pick RGBA8888. You still have to choose the proper config though.
On Wed, Mar 16, 2011 at 3:43 PM, Robert Green <rbgrn....@gmail.com> wrote: > Thanks Romain, > > So what's the correct, complete solution? Set the window to RGBA8888 > then use 8 8 8 8 for the egl config chooser or is translucency > preferred? I just want something that won't be finicky and break on > future chips/devices/oem impls. > > On Mar 16, 3:05 pm, Romain Guy <romain...@android.com> wrote: > > RGBA8888 should be supported on all devices, but you are asking for > RGBX8888 > > which may not be supported. > > > > > > > > > > > > > > > > > > > > On Wed, Mar 16, 2011 at 10:04 PM, Robert Green <rbgrn....@gmail.com> > wrote: > > > I remember that early Android devices were all 16 bit color (RGB_565) > > > but read something about 24 bit color support on newer devices? I'd > > > like to enable it in a safe way if possible for my surface/pixelformat > > > for GL but I'm not getting a valid egl config back. > > > > > I've tried: > > > > > setEGLConfigChooser(8, 8, 8, 0, 16, 0); // 24 bit color, no alpha, 16 > > > bit depth buffer, no stencil buffer > > > getHolder().setFormat(PixelFormat.TRANSLUCENT); // supposedly makes it > > > use 8888 > > > > > On a galaxy s and no dice. > > > > > So my questions are: Do any devices support high color and if so, is > > > there a good way to use it when available but fall back to 16 bit when > > > not for OpenGL? > > > > > I found this snippet somewhere, but haven't tried doing this in combo > > > with the pixelformat: > > > > > public class MyActivity extends Activity { > > > @Override > > > public void onAttachedToWindow() { > > > super.onAttachedToWindow(); > > > Window window = getWindow(); > > > window.setFormat(PixelFormat.RGBA_8888); > > > } > > > } > > > > > Does anyone have experience with this? > > > > > 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+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them > > -- > 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en