public class SelesWindowsSurface
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
FLAG_RECORDABLE
Constructor flag: surface must be recordable.
|
static int |
FLAG_TRY_GLES3
Constructor flag: ask for GLES3, fall back to GLES2 if not available.
|
构造器和说明 |
---|
SelesWindowsSurface(android.opengl.EGLContext sharedContext,
int flags) |
限定符和类型 | 方法和说明 |
---|---|
void |
attachSurface(android.view.Surface surface,
boolean releaseSurface) |
int |
getGlVersion()
Returns the GLES version this context is configured for (currently 2 or 3).
|
void |
makeCurrent()
Makes our EGL context current, using the supplied surface for both "draw" and "read".
|
void |
release()
Releases any resources associated with the EGL surface (and, if configured to do so,
with the Surface as well).
|
void |
setPresentationTime(long nsecs)
Sends the presentation time stamp to EGL.
|
boolean |
swapBuffers()
Calls eglSwapBuffers.
|
public static final int FLAG_RECORDABLE
public static final int FLAG_TRY_GLES3
public SelesWindowsSurface(android.opengl.EGLContext sharedContext, int flags)
public void attachSurface(android.view.Surface surface, boolean releaseSurface)
public void makeCurrent()
public int getGlVersion()
public void setPresentationTime(long nsecs)
nsecs
- Timestamp, in nanoseconds.public boolean swapBuffers()
public void release()
Does not require that the surface's EGL context be current.