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

Classes

class  Context
 

Public Member Functions

 EglBase10 (Context sharedContext, int[] configAttributes)
 
void createSurface (Surface surface)
 
void createSurface (SurfaceTexture surfaceTexture)
 
void createDummyPbufferSurface ()
 
void createPbufferSurface (int width, int height)
 
EglBase.Context getEglBaseContext ()
 
boolean hasSurface ()
 
int surfaceWidth ()
 
int surfaceHeight ()
 
void releaseSurface ()
 
void release ()
 
void makeCurrent ()
 
void detachCurrent ()
 
void swapBuffers ()
 
void swapBuffers (long timeStampNs)
 
- Public Member Functions inherited from io.agora.rtc.gl.EglBase
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from io.agora.rtc.gl.EglBase
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 inherited from io.agora.rtc.gl.EglBase
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

◆ createSurface()

void io.agora.rtc.gl.EglBase10.createSurface ( Surface  surface)

We have to wrap Surface in a SurfaceHolder because for some reason eglCreateWindowSurface couldn't actually take a Surface object until API 17. Older versions fortunately just call SurfaceHolder.getSurface(), so we'll do that. No other methods are relevant.