org.rajawali3d.view / TextureView / setEGLConfigChooser

setEGLConfigChooser

open fun setEGLConfigChooser(configChooser: IRajawaliEglConfigChooser): Unit

Install a custom EGLConfigChooser.

If this method is called, it must be called before .setSurfaceRenderer 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 depth of at least 16 bits.

Parameters

configChooser - GLSurfaceView.EGLConfigChooser The EGL Configuration chooser.

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

Install 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 .setSurfaceRenderer is called.

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