Methods Summary |
---|
private static native EGLSurface | _eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, java.lang.Object win, int[] attrib_list, int offset)
|
private static native EGLSurface | _eglCreateWindowSurfaceTexture(EGLDisplay dpy, EGLConfig config, java.lang.Object win, int[] attrib_list, int offset)
|
private static native void | _nativeClassInit()
|
public static native boolean | eglBindAPI(int api)
|
public static native boolean | eglBindTexImage(EGLDisplay dpy, EGLSurface surface, int buffer)
|
public static native boolean | eglChooseConfig(EGLDisplay dpy, int[] attrib_list, int attrib_listOffset, EGLConfig[] configs, int configsOffset, int config_size, int[] num_config, int num_configOffset)
|
public static native boolean | eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, int target)
|
public static native EGLContext | eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, int[] attrib_list, int offset)
|
public static native EGLSurface | eglCreatePbufferFromClientBuffer(EGLDisplay dpy, int buftype, int buffer, EGLConfig config, int[] attrib_list, int offset)
|
public static native EGLSurface | eglCreatePbufferFromClientBuffer(EGLDisplay dpy, int buftype, long buffer, EGLConfig config, int[] attrib_list, int offset){@hide}
|
public static native EGLSurface | eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, int[] attrib_list, int offset)
|
public static native EGLSurface | eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, int pixmap, int[] attrib_list, int offset)
|
public static EGLSurface | eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, java.lang.Object win, int[] attrib_list, int offset)
_nativeClassInit();
Surface sur = null;
if (win instanceof SurfaceView) {
SurfaceView surfaceView = (SurfaceView)win;
sur = surfaceView.getHolder().getSurface();
} else if (win instanceof SurfaceHolder) {
SurfaceHolder holder = (SurfaceHolder)win;
sur = holder.getSurface();
} else if (win instanceof Surface) {
sur = (Surface) win;
}
EGLSurface surface;
if (sur != null) {
surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset);
} else if (win instanceof SurfaceTexture) {
surface = _eglCreateWindowSurfaceTexture(dpy, config,
win, attrib_list, offset);
} else {
throw new java.lang.UnsupportedOperationException(
"eglCreateWindowSurface() can only be called with an instance of " +
"Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
"this will be fixed later.");
}
return surface;
|
public static native boolean | eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
|
public static native boolean | eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
|
public static native boolean | eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, int attribute, int[] value, int offset)
|
public static native boolean | eglGetConfigs(EGLDisplay dpy, EGLConfig[] configs, int configsOffset, int config_size, int[] num_config, int num_configOffset)
|
public static native EGLContext | eglGetCurrentContext()
|
public static native EGLDisplay | eglGetCurrentDisplay()
|
public static native EGLSurface | eglGetCurrentSurface(int readdraw)
|
public static native EGLDisplay | eglGetDisplay(int display_id)
|
public static native EGLDisplay | eglGetDisplay(long display_id){@hide}
|
public static native int | eglGetError()
|
public static native boolean | eglInitialize(EGLDisplay dpy, int[] major, int majorOffset, int[] minor, int minorOffset)
|
public static native boolean | eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
|
public static native int | eglQueryAPI()
|
public static native boolean | eglQueryContext(EGLDisplay dpy, EGLContext ctx, int attribute, int[] value, int offset)
|
public static native java.lang.String | eglQueryString(EGLDisplay dpy, int name)
|
public static native boolean | eglQuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, int[] value, int offset)
|
public static native boolean | eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer)
|
public static native boolean | eglReleaseThread()
|
public static native boolean | eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value)
|
public static native boolean | eglSwapBuffers(EGLDisplay dpy, EGLSurface surface)
|
public static native boolean | eglSwapInterval(EGLDisplay dpy, int interval)
|
public static native boolean | eglTerminate(EGLDisplay dpy)
|
public static native boolean | eglWaitClient()
|
public static native boolean | eglWaitGL()
|
public static native boolean | eglWaitNative(int engine)
|