setEGLConfigChooser

Installs a custom EGLConfigChooser. If this method is called, it must be called before setRenderer is called.

If no setEGLConfigChooser method is called, then by default the view will choose an EGLConfig that is compatible with the current android.view.Surface, with a depth buffer of at least 16 bits.


Installs a config chooser which will choose a config as close to 16-bit RGB as possible, with or without an optional depth buffer as close to 16-bits as possible.

If this method is called, it must be called before setRenderer is called.

If no setEGLConfigChooser method is called, then by default the view will choose an RGB_888 surface with a depth buffer of at least 16 bits.


fun setEGLConfigChooser(redSize: Int, greenSize: Int, blueSize: Int, alphaSize: Int, depthSize: Int, stencilSize: Int)

Installs a config chooser which will choose a config with at least the specified depthSize and stencilSize, and exactly the specified redSize, greenSize, blueSize and alphaSize.

If this method is called, it must be called before setRenderer is called.

If no setEGLConfigChooser method is called, then by default the view will choose an RGB_888 surface with a depth buffer of at least 16 bits.

Parameters

redSize

the size of the red component in bits.

greenSize

the size of the green component in bits.

blueSize

the size of the blue component in bits.

alphaSize

the size of the alpha component in bits.

depthSize

the size of the depth buffer in bits.

stencilSize

the size of the stencil buffer in bits.