Class EglBase10
- java.lang.Object
-
- com.zego.zegoavkit2.screencapture.ve_gl.EglBase
-
- com.zego.zegoavkit2.screencapture.ve_gl.EglBase10
-
public final class EglBase10 extends EglBase
Holds EGL state and utility methods for handling an egl 1.0 EGLContext, an EGLDisplay, and an EGLSurface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EglBase10.Context
-
Field Summary
-
Fields inherited from class com.zego.zegoavkit2.screencapture.ve_gl.EglBase
CONFIG_PIXEL_BUFFER, CONFIG_PIXEL_RGBA_BUFFER, CONFIG_PLAIN, CONFIG_RECORDABLE, CONFIG_RGBA, lock
-
-
Constructor Summary
Constructors Constructor Description EglBase10(EglBase10.Context sharedContext, int[] configAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDummyPbufferSurface()
void
createPbufferSurface(int width, int height)
void
createSurface(android.graphics.SurfaceTexture surfaceTexture)
void
createSurface(android.view.Surface surface)
void
detachCurrent()
EglBase.Context
getEglBaseContext()
boolean
hasSurface()
void
makeCurrent()
void
release()
void
releaseSurface()
int
surfaceHeight()
int
surfaceWidth()
void
swapBuffers()
-
-
-
Constructor Detail
-
EglBase10
public EglBase10(EglBase10.Context sharedContext, int[] configAttributes)
-
-
Method Detail
-
createSurface
public void createSurface(android.view.Surface surface)
- Specified by:
createSurface
in classEglBase
-
createSurface
public void createSurface(android.graphics.SurfaceTexture surfaceTexture)
- Specified by:
createSurface
in classEglBase
-
createDummyPbufferSurface
public void createDummyPbufferSurface()
- Specified by:
createDummyPbufferSurface
in classEglBase
-
createPbufferSurface
public void createPbufferSurface(int width, int height)
- Specified by:
createPbufferSurface
in classEglBase
-
getEglBaseContext
public EglBase.Context getEglBaseContext()
- Specified by:
getEglBaseContext
in classEglBase
-
hasSurface
public boolean hasSurface()
- Specified by:
hasSurface
in classEglBase
-
surfaceWidth
public int surfaceWidth()
- Specified by:
surfaceWidth
in classEglBase
-
surfaceHeight
public int surfaceHeight()
- Specified by:
surfaceHeight
in classEglBase
-
releaseSurface
public void releaseSurface()
- Specified by:
releaseSurface
in classEglBase
-
makeCurrent
public void makeCurrent()
- Specified by:
makeCurrent
in classEglBase
-
detachCurrent
public void detachCurrent()
- Specified by:
detachCurrent
in classEglBase
-
swapBuffers
public void swapBuffers()
- Specified by:
swapBuffers
in classEglBase
-
-