Sign in to follow this  
Michael Wojcik

Setting surface format on android

Recommended Posts


According to the android developers website

[quote]By default, GLSurfaceView tries to find a surface that's as close as possible to a 16-bit RGB frame buffer with a 16-bit depth buffer. [/quote]

I want to use a 32 bit RGBA frame buffer format, but be able to fall back to 16 bit frame buffer format if the 32 bit option is not supported on a players Android device. I've been looking on google and the android developers website, but can't quite understand how to accomplish what I want.

Can someone post code or explain how this can be done?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this