EGLConfigAttributes

public final class EGLConfigAttributes


Summary

Nested types

public final class EGLConfigAttributes.Builder

Builder used to create an instance of EGLConfigAttributes Allows for a mapping of EGL configuration attributes to their corresponding values as well as including a previously generated EGLConfigAttributes instance to be used as a template and conditionally update individual mapped values

Constants

static final int

EGL configuration attribute used to expose EGLConfigs that support formats with floating point RGBA components.

static final int

EGL configuration attribute value that represents fixed point RGBA components

static final int

EGL configuration attribute value that represents floating point RGBA components

Public fields

final @NonNull EGLConfigAttributes

EGL Attributes to create a 10 bit EGL config for red, green, blue, channels and a 2 bit alpha channels.

final @NonNull EGLConfigAttributes

EGL Attributes to create an 8 bit EGL config for red, green, blue, and alpha channels as well as an 8 bit stencil size

final @NonNull EGLConfigAttributes

EGL Attributes to create a 16 bit floating point EGL config for red, green, blue and alpha channels without a depth or stencil channel.

Public methods

final @NonNull int[]

Return a copy of the created integer array used for EGL methods.

Constants

EGL_COLOR_COMPONENT_TYPE_EXT

public static final int EGL_COLOR_COMPONENT_TYPE_EXT = 13113

EGL configuration attribute used to expose EGLConfigs that support formats with floating point RGBA components. This attribute is exposed through the EGL_EXT_pixel_format_float EGL extension

See: https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_pixel_format_float.txt

EGL_COLOR_COMPONENT_TYPE_FIXED_EXT

public static final int EGL_COLOR_COMPONENT_TYPE_FIXED_EXT = 13114

EGL configuration attribute value that represents fixed point RGBA components

EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT

public static final int EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT = 13115

EGL configuration attribute value that represents floating point RGBA components

Public fields

RGBA_1010102

public final @NonNull EGLConfigAttributes RGBA_1010102

EGL Attributes to create a 10 bit EGL config for red, green, blue, channels and a 2 bit alpha channels. This does not include any bits for depth and stencil buffers.

RGBA_8888

public final @NonNull EGLConfigAttributes RGBA_8888

EGL Attributes to create an 8 bit EGL config for red, green, blue, and alpha channels as well as an 8 bit stencil size

RGBA_F16

public final @NonNull EGLConfigAttributes RGBA_F16

EGL Attributes to create a 16 bit floating point EGL config for red, green, blue and alpha channels without a depth or stencil channel.

Public methods

toArray

Added in 1.0.0-beta01
public final @NonNull int[] toArray()

Return a copy of the created integer array used for EGL methods. Most consumers would pass the EGLConfigAttributes instance as a parameter instead, however, this method is provided as a convenience for debugging and testing purposes.