EGLConfigAttributes


class EGLConfigAttributes


Summary

Nested types

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

const Int

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

const Int

EGL configuration attribute value that represents fixed point RGBA components

const Int

EGL configuration attribute value that represents floating point RGBA components

Public companion properties

EGLConfigAttributes

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

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

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 functions

IntArray

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

Constants

EGL_COLOR_COMPONENT_TYPE_EXT

const val EGL_COLOR_COMPONENT_TYPE_EXT = 13113: Int

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

const val EGL_COLOR_COMPONENT_TYPE_FIXED_EXT = 13114: Int

EGL configuration attribute value that represents fixed point RGBA components

EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT

const val EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT = 13115: Int

EGL configuration attribute value that represents floating point RGBA components

Public companion properties

RGBA_1010102

val RGBA_1010102EGLConfigAttributes

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

val RGBA_8888EGLConfigAttributes

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

val RGBA_F16EGLConfigAttributes

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 functions

toArray

Added in 1.0.0-rc01
fun toArray(): IntArray

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.