EglBase

interface EglBase

Holds EGL state and utility methods for handling an egl 1.0 EGLContext, an EGLDisplay, and an EGLSurface.

Inheritors

Types

Link copied to clipboard
open class ConfigBuilder
Link copied to clipboard
interface Context

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val lock: Any

Functions

Link copied to clipboard
Link copied to clipboard
open fun create(): EglBase
Helper function for creating a plain root context.
open fun create(sharedContext: EglBase.Context): EglBase
Helper function for creating a plain context, sharing data with `sharedContext`.
open fun create(@Nullable sharedContext: EglBase.Context, configAttributes: Array<Int>): EglBase
Create a new context with the specified config attributes, sharing data with `sharedContext`.
Link copied to clipboard
Link copied to clipboard
open fun createEgl10(configAttributes: Array<Int>): EglBase10
Explicitly create a root EGl 1.0 context with the specified config attributes.
open fun createEgl10(sharedContext: EGLContext, configAttributes: Array<Int>): EglBase10
open fun createEgl10(sharedContext: EglBase10.Context, configAttributes: Array<Int>): EglBase10
Explicitly create a root EGl 1.0 context with the specified config attributes and shared context.
Link copied to clipboard
open fun createEgl14(configAttributes: Array<Int>): EglBase14
Explicitly create a root EGl 1.4 context with the specified config attributes.
open fun createEgl14(sharedContext: EGLContext, configAttributes: Array<Int>): EglBase14
open fun createEgl14(sharedContext: EglBase14.Context, configAttributes: Array<Int>): EglBase14
Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.
Link copied to clipboard
abstract fun createPbufferSurface(width: Int, height: Int)
Link copied to clipboard
abstract fun createSurface(surfaceTexture: SurfaceTexture)
abstract fun createSurface(surface: Surface)
Link copied to clipboard
abstract fun detachCurrent()
Link copied to clipboard
Link copied to clipboard
open fun getOpenGlesVersionFromConfig(configAttributes: Array<Int>): Int
Link copied to clipboard
abstract fun hasSurface(): Boolean
Link copied to clipboard
abstract fun makeCurrent()
Link copied to clipboard
abstract fun release()
Link copied to clipboard
abstract fun releaseSurface()
Link copied to clipboard
abstract fun surfaceHeight(): Int
Link copied to clipboard
abstract fun surfaceWidth(): Int
Link copied to clipboard
abstract fun swapBuffers()
abstract fun swapBuffers(presentationTimeStampNs: Long)