Edit

GLTextureView.SetEGLConfigChooser Method

Definition

Overloads

Name Description
SetEGLConfigChooser(GLTextureView+IEGLConfigChooser)

Install a custom config chooser.

SetEGLConfigChooser(Boolean)

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

SetEGLConfigChooser(Int32, Int32, Int32, Int32, Int32, Int32)

Install a config chooser which will choose a config with at least the specified depth size and stencil size, and exactly the specified red size, green size, blue size and alpha size.

SetEGLConfigChooser(GLTextureView+IEGLConfigChooser)

Install a custom config chooser.

public void SetEGLConfigChooser(SkiaSharp.Views.Android.GLTextureView.IEGLConfigChooser configChooser);

Parameters

configChooser
GLTextureView.IEGLConfigChooser

The custom config chooser.

Remarks

If no EGL config chooser is set, then by default the view will choose an RGB 888 surface with a depth buffer depth of at least 16 bits.

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

Applies to

SetEGLConfigChooser(Boolean)

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

public void SetEGLConfigChooser(bool needDepth);

Parameters

needDepth
Boolean

true to include a depth buffer; otherwise, false.

Remarks

If no EGL config chooser is set, then by default the view will choose an RGB 888 surface with a depth buffer depth of at least 16 bits.

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

Applies to

SetEGLConfigChooser(Int32, Int32, Int32, Int32, Int32, Int32)

Install a config chooser which will choose a config with at least the specified depth size and stencil size, and exactly the specified red size, green size, blue size and alpha size.

public void SetEGLConfigChooser(int redSize, int greenSize, int blueSize, int alphaSize, int depthSize, int stencilSize);

Parameters

redSize
Int32

The size of the red.

greenSize
Int32

The size of the green.

blueSize
Int32

The size of the blue.

alphaSize
Int32

The size of the alpha.

depthSize
Int32

The size of the depth buffer.

stencilSize
Int32

The size of the stencil buffer.

Remarks

If no EGL config chooser is set, then by default the view will choose an RGB 888 surface with a depth buffer depth of at least 16 bits.

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

Applies to