public class SurfaceManager
extends java.lang.Object
Constructor and Description |
---|
SurfaceManager() |
SurfaceManager(android.view.Surface surface)
Creates an EGL context and an EGL surface.
|
SurfaceManager(android.view.Surface surface,
android.opengl.EGLContext eglContext)
Creates an EGL context and an EGL surface.
|
SurfaceManager(android.view.Surface surface,
SurfaceManager manager)
Creates an EGL context and an EGL surface.
|
Modifier and Type | Method and Description |
---|---|
android.opengl.EGLContext |
getEglContext() |
android.opengl.EGLDisplay |
getEglDisplay() |
android.opengl.EGLContext |
getEglSharedContext() |
android.opengl.EGLSurface |
getEglSurface() |
void |
makeCurrent() |
void |
release()
Discards all resources held by this class, notably the EGL context.
|
void |
setPresentationTime(long nsecs)
Sends the presentation time stamp to EGL.
|
void |
swapBuffer() |
public SurfaceManager(android.view.Surface surface, SurfaceManager manager)
public SurfaceManager(android.view.Surface surface, android.opengl.EGLContext eglContext)
public SurfaceManager(android.view.Surface surface)
public SurfaceManager()
public void makeCurrent()
public void swapBuffer()
public void setPresentationTime(long nsecs)
public void release()
public android.opengl.EGLContext getEglContext()
public android.opengl.EGLContext getEglSharedContext()
public android.opengl.EGLSurface getEglSurface()
public android.opengl.EGLDisplay getEglDisplay()