Agora Java API Reference for Android
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
io.agora.rtc.gl.EglBase Class Referenceabstract
Inheritance diagram for io.agora.rtc.gl.EglBase:
io.agora.rtc.gl.EglBase10 io.agora.rtc.gl.EglBase14

Classes

interface  Context
 

Public Member Functions

abstract void createSurface (Surface surface)
 
abstract void createSurface (SurfaceTexture surfaceTexture)
 
abstract void createDummyPbufferSurface ()
 
abstract void createPbufferSurface (int width, int height)
 
abstract Context getEglBaseContext ()
 
abstract boolean hasSurface ()
 
abstract int surfaceWidth ()
 
abstract int surfaceHeight ()
 
abstract void releaseSurface ()
 
abstract void release ()
 
abstract void makeCurrent ()
 
abstract void detachCurrent ()
 
abstract void swapBuffers ()
 
abstract void swapBuffers (long presentationTimeStampNs)
 

Static Public Member Functions

static EglBase create (Context sharedContext, int[] configAttributes)
 
static EglBase create ()
 
static EglBase create (Context sharedContext)
 
static EglBase createEgl10 (int[] configAttributes)
 
static EglBase createEgl10 (javax.microedition.khronos.egl.EGLContext sharedContext, int[] configAttributes)
 
static EglBase createEgl14 (int[] configAttributes)
 
static EglBase createEgl14 (android.opengl.EGLContext sharedContext, int[] configAttributes)
 

Static Public Attributes

static final Object lock = new Object()
 
static final int EGL_OPENGL_ES2_BIT = 4
 
static final int EGL_RECORDABLE_ANDROID = 0x3142
 
static final int [] CONFIG_PLAIN
 
static final int [] CONFIG_RGBA
 
static final int [] CONFIG_PIXEL_BUFFER
 
static final int [] CONFIG_PIXEL_RGBA_BUFFER
 
static final int [] CONFIG_RECORDABLE
 

Detailed Description

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

Member Function Documentation

◆ create() [1/3]

static EglBase io.agora.rtc.gl.EglBase.create ( Context  sharedContext,
int []  configAttributes 
)
static

Create a new context with the specified config attributes, sharing data with |sharedContext|. If |sharedContext| is null, a root context is created. This function will try to create an EGL 1.4 context if possible, and an EGL 1.0 context otherwise.

◆ create() [2/3]

static EglBase io.agora.rtc.gl.EglBase.create ( )
static

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.

◆ create() [3/3]

static EglBase io.agora.rtc.gl.EglBase.create ( Context  sharedContext)
static

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.

◆ createEgl10() [1/2]

static EglBase io.agora.rtc.gl.EglBase.createEgl10 ( int []  configAttributes)
static

Explicitly create a root EGl 1.0 context with the specified config attributes.

◆ createEgl10() [2/2]

static EglBase io.agora.rtc.gl.EglBase.createEgl10 ( javax.microedition.khronos.egl.EGLContext  sharedContext,
int []  configAttributes 
)
static

Explicitly create a root EGl 1.0 context with the specified config attributes and shared context.

◆ createEgl14() [1/2]

static EglBase io.agora.rtc.gl.EglBase.createEgl14 ( int []  configAttributes)
static

Explicitly create a root EGl 1.4 context with the specified config attributes.

◆ createEgl14() [2/2]

static EglBase io.agora.rtc.gl.EglBase.createEgl14 ( android.opengl.EGLContext  sharedContext,
int []  configAttributes 
)
static

Explicitly create a root EGl 1.4 context with the specified config attributes and shared context.

Member Data Documentation

◆ CONFIG_PLAIN

final int [] io.agora.rtc.gl.EglBase.CONFIG_PLAIN
static
Initial value:
= {
EGL10.EGL_RED_SIZE, 8,
EGL10.EGL_GREEN_SIZE, 8,
EGL10.EGL_BLUE_SIZE, 8,
EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL10.EGL_NONE
}

◆ CONFIG_RGBA

final int [] io.agora.rtc.gl.EglBase.CONFIG_RGBA
static
Initial value:
= {
EGL10.EGL_RED_SIZE, 8,
EGL10.EGL_GREEN_SIZE, 8,
EGL10.EGL_BLUE_SIZE, 8,
EGL10.EGL_ALPHA_SIZE, 8,
EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL10.EGL_NONE
}

◆ CONFIG_PIXEL_BUFFER

final int [] io.agora.rtc.gl.EglBase.CONFIG_PIXEL_BUFFER
static
Initial value:
= {
EGL10.EGL_RED_SIZE, 8,
EGL10.EGL_GREEN_SIZE, 8,
EGL10.EGL_BLUE_SIZE, 8,
EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL10.EGL_SURFACE_TYPE, EGL10.EGL_PBUFFER_BIT,
EGL10.EGL_NONE
}

◆ CONFIG_PIXEL_RGBA_BUFFER

final int [] io.agora.rtc.gl.EglBase.CONFIG_PIXEL_RGBA_BUFFER
static
Initial value:
= {
EGL10.EGL_RED_SIZE, 8,
EGL10.EGL_GREEN_SIZE, 8,
EGL10.EGL_BLUE_SIZE, 8,
EGL10.EGL_ALPHA_SIZE, 8,
EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL10.EGL_SURFACE_TYPE, EGL10.EGL_PBUFFER_BIT,
EGL10.EGL_NONE
}

◆ CONFIG_RECORDABLE

final int [] io.agora.rtc.gl.EglBase.CONFIG_RECORDABLE
static
Initial value:
= {
EGL10.EGL_RED_SIZE, 8,
EGL10.EGL_GREEN_SIZE, 8,
EGL10.EGL_BLUE_SIZE, 8,
EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_RECORDABLE_ANDROID, 1,
EGL10.EGL_NONE
}