EglCore

interface EglCore

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

Inheritors

Properties

Link copied to clipboard
abstract val eglConfig: EGLConfig

Current used EGLConfig

Link copied to clipboard
abstract val 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
abstract val eglDisplay: EGLDisplay

Current initialized EGLDisplay

Link copied to clipboard
abstract 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
abstract 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.