Agora Java API Reference for Android
|
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) |
![]() | |
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 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 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 |
Holds EGL state and utility methods for handling an egl 1.0 EGLContext, an EGLDisplay, and an EGLSurface.
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.