DefaultEglCore

class DefaultEglCore(releaseCallback: Runnable? = null, sharedContext: EGLContext = EGL14.EGL_NO_CONTEXT) : EglCore

DefaultEglCore is an implementation of EglCore which uses EGL14 and OpenGLES2. OpenGLES3 has incompatibilities with AmazonChimeSDKMedia library.

Constructors

Link copied to clipboard
constructor(releaseCallback: Runnable? = null, sharedContext: EGLContext = EGL14.EGL_NO_CONTEXT)

Properties

Link copied to clipboard
open lateinit override var eglConfig: EGLConfig

Current used EGLConfig

Link copied to clipboard
open override var eglContext: EGLContext

A EGLContext which was created with eglDisplay and eglConfig, may or may not be the current context on the thread, users must call EGL14.eglMakeCurrent after creating a valid current surface. This may be passed to other components to share the context.

Link copied to clipboard
open override var eglDisplay: EGLDisplay

Current initialized EGLDisplay

Link copied to clipboard
open override var eglSurface: EGLSurface

Current EGLSurface. Will likely be EGL14.EGL_NO_SURFACE on init. As EglCore does not include helper functions users must create this value themselves, which is why it is defined as var

Functions

Link copied to clipboard
open override fun release()

Discards all resources held by this class, notably the EGL context. This must be called from the thread where the context was created.