amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo.video.gl / EglCore

EglCore

interface EglCore

EglCore is an interface for containing all EGL state in one component. In the future it may contain additional helper methods.

Properties

eglConfig

Current used EGLConfig

abstract val eglConfig: EGLConfig

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.

abstract val eglContext: EGLContext

eglDisplay

Current initialized EGLDisplay

abstract val eglDisplay: EGLDisplay

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

abstract var eglSurface: EGLSurface

Functions

release

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

abstract fun release(): Unit

Inheritors

DefaultEglCore

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

class DefaultEglCore : EglCore