create

open fun create(eglConnection: EglBase.EglConnection): EglBase

Creates a new EglBase with a shared EglConnection. EglBase instances sharing the same EglConnection should be used on the same thread to avoid the underlying EGLContext being made current on multiple threads. It is up to the client of EglBase to ensure that instances with a shared EglConnection are current on that thread before each use since other EglBase instances may have used the same EGLContext since the last interaction.


open fun create(@Nullable sharedContext: EglBase.Context, configAttributes: Array<Int>): EglBase

Create a new context with the specified config attributes, sharing data with `sharedContext`. If `sharedContext` is null, a root EGL 1.4 context is created.


open fun create(): EglBase

Helper function for creating a plain root context. This function will try to create an EGL 1.4 context if possible, and an EGL 1.0 context otherwise.


open fun create(sharedContext: EglBase.Context): EglBase

Helper function for creating a plain context, sharing data with `sharedContext`. This function will try to create an EGL 1.4 context if possible, and an EGL 1.0 context otherwise.