create

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.