| Modifier | Constructor and Description |
|---|---|
|
EglCoreKhronos() |
protected |
EglCoreKhronos(javax.microedition.khronos.egl.EGLContext sharedContext) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_isCurrent(javax.microedition.khronos.egl.EGLSurface eglSurface)
Returns true if our context and the specified surface are current.
|
void |
_makeCurrent(javax.microedition.khronos.egl.EGLSurface eglSurface)
Makes our EGL context current, using the supplied surface for both "draw"
and "read".
|
void |
_makeCurrent(javax.microedition.khronos.egl.EGLSurface drawSurface,
javax.microedition.khronos.egl.EGLSurface readSurface)
Makes our EGL context current, using the supplied "draw" and "read"
surfaces.
|
protected int |
_querySurface(javax.microedition.khronos.egl.EGLSurface eglSurface,
int what)
Performs a simple surface query.
|
protected void |
_setPresentationTime(javax.microedition.khronos.egl.EGLSurface eglSurface,
long nsecs)
Sends the presentation time stamp to EGL.
|
protected boolean |
_swapBuffers(javax.microedition.khronos.egl.EGLSurface eglSurface)
Calls eglSwapBuffers.
|
javax.microedition.khronos.egl.EGLConfig |
chooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display) |
javax.microedition.khronos.egl.EGLConfig |
chooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display,
javax.microedition.khronos.egl.EGLContext sharedContext) |
javax.microedition.khronos.egl.EGLSurface |
createOffscreenSurface(int width,
int height)
Creates an EGL surface associated with an offscreen buffer.
|
IEglSurfaceBase |
createSurfaceBase() |
javax.microedition.khronos.egl.EGLSurface |
createWindowSurface(java.lang.Object surface)
Creates an EGL surface associated with a Surface.
|
IWindowSurface |
createWindowSurface(android.view.Surface surface,
boolean releaseSurface) |
IWindowSurface |
createWindowSurface(android.view.SurfaceHolder holder,
boolean releaseSurace) |
IWindowSurface |
createWindowSurface(android.graphics.SurfaceTexture surfaceTexture) |
javax.microedition.khronos.egl.EGLConfig |
doChooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display,
javax.microedition.khronos.egl.EGLConfig[] configs) |
javax.microedition.khronos.egl.EGLContext |
getEGLContext() |
javax.microedition.khronos.opengles.GL |
getGL() |
int |
getGlVersion()
Returns the GLES version this context is configured for (currently 2 or
3).
|
boolean |
isCurrent(IEglSurfaceBase eglSfBase) |
void |
logCurrent(java.lang.String msg)
Writes the current display, context, and surface to the log.
|
void |
makeCurrent(IEglSurfaceBase eglSurfaceBase) |
void |
makeCurrent(IEglSurfaceBase drawSurface,
IEglSurfaceBase readSurface) |
void |
makeNothingCurrent()
Makes no context current.
|
java.lang.String |
queryString(int what)
Queries a string value.
|
int |
querySurface(IEglSurfaceBase eglSfBase,
int what) |
void |
release() |
void |
releaseSurface(javax.microedition.khronos.egl.EGLSurface eglSurface)
Destroys the specified surface.
|
void |
setPresentationTime(IEglSurfaceBase eglSfBase,
long nsecs) |
boolean |
swapBuffers(IEglSurfaceBase eglSfBase) |
public EglCoreKhronos()
protected EglCoreKhronos(javax.microedition.khronos.egl.EGLContext sharedContext)
public javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display,
javax.microedition.khronos.egl.EGLContext sharedContext)
public javax.microedition.khronos.egl.EGLConfig chooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display)
public javax.microedition.khronos.egl.EGLConfig doChooseConfig(javax.microedition.khronos.egl.EGL10 egl,
javax.microedition.khronos.egl.EGLDisplay display,
javax.microedition.khronos.egl.EGLConfig[] configs)
public javax.microedition.khronos.opengles.GL getGL()
public void releaseSurface(javax.microedition.khronos.egl.EGLSurface eglSurface)
public javax.microedition.khronos.egl.EGLSurface createWindowSurface(java.lang.Object surface)
If this is destined for MediaCodec, the EGLConfig should have the "recordable" attribute.
public javax.microedition.khronos.egl.EGLSurface createOffscreenSurface(int width,
int height)
public void _makeCurrent(javax.microedition.khronos.egl.EGLSurface eglSurface)
public void _makeCurrent(javax.microedition.khronos.egl.EGLSurface drawSurface,
javax.microedition.khronos.egl.EGLSurface readSurface)
protected boolean _swapBuffers(javax.microedition.khronos.egl.EGLSurface eglSurface)
protected void _setPresentationTime(javax.microedition.khronos.egl.EGLSurface eglSurface,
long nsecs)
protected boolean _isCurrent(javax.microedition.khronos.egl.EGLSurface eglSurface)
protected int _querySurface(javax.microedition.khronos.egl.EGLSurface eglSurface,
int what)
public java.lang.String queryString(int what)
public int getGlVersion()
getGlVersion in interface IEglCorepublic IEglSurfaceBase createSurfaceBase()
createSurfaceBase in interface IEglCorepublic IWindowSurface createWindowSurface(android.view.Surface surface, boolean releaseSurface)
createWindowSurface in interface IEglCorepublic IWindowSurface createWindowSurface(android.view.SurfaceHolder holder, boolean releaseSurace)
createWindowSurface in interface IEglCorepublic IWindowSurface createWindowSurface(android.graphics.SurfaceTexture surfaceTexture)
createWindowSurface in interface IEglCorepublic void logCurrent(java.lang.String msg)
public void makeCurrent(IEglSurfaceBase eglSurfaceBase)
makeCurrent in interface IEglCorepublic void makeCurrent(IEglSurfaceBase drawSurface, IEglSurfaceBase readSurface)
makeCurrent in interface IEglCorepublic void makeNothingCurrent()
makeNothingCurrent in interface IEglCorepublic boolean swapBuffers(IEglSurfaceBase eglSfBase)
swapBuffers in interface IEglCorepublic void setPresentationTime(IEglSurfaceBase eglSfBase, long nsecs)
setPresentationTime in interface IEglCorepublic boolean isCurrent(IEglSurfaceBase eglSfBase)
public int querySurface(IEglSurfaceBase eglSfBase, int what)
querySurface in interface IEglCorepublic javax.microedition.khronos.egl.EGLContext getEGLContext()
getEGLContext in interface IEglCore