Egl10

Class of snx.android.opengl · Egl10.java

public final class Egl10 implements EGL11

JSR 239's EGL over the runtime's EGL (src/android/bridge/hle_egl.c), the one that an app's native code calls too: each object holds the native handle, so a context or surface made here is current for the native GLES calls of the same thread. The Java objects of one handle are one object, as Android's are.

Page 1 2

Methods

public EGLDisplay eglGetDisplay(Object native_display) source
public boolean eglInitialize(EGLDisplay display, int[] major_minor) source
public boolean eglTerminate(EGLDisplay display) source
public String eglQueryString(EGLDisplay display, int name) source
public int eglGetError() source
public boolean eglChooseConfig(EGLDisplay display, int[] attrib_list, EGLConfig[] configs, int config_size, int[] num_config) source
public boolean eglGetConfigs(EGLDisplay display, EGLConfig[] configs, int config_size, int[] num_config) source
public boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, int[] value) source
public EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list) source
public boolean eglDestroyContext(EGLDisplay display, EGLContext context) source
public boolean eglQueryContext(EGLDisplay display, EGLContext context, int attribute, int[] value) source
public EGLSurface eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list) source

A window surface of a SurfaceView's surface (a SurfaceHolder, the Surface itself or the view), the host window

public EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list) source
public EGLSurface eglCreatePixmapSurface(EGLDisplay display, EGLConfig config, Object native_pixmap, int[] attrib_list) throws UnsupportedOperationException source

No pixmaps on Android either

public boolean eglDestroySurface(EGLDisplay display, EGLSurface surface) source
public boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value) source
public boolean eglMakeCurrent(EGLDisplay display, EGLSurface draw, EGLSurface read, EGLContext context) source
public EGLContext eglGetCurrentContext() source
public EGLDisplay eglGetCurrentDisplay() source
public EGLSurface eglGetCurrentSurface(int readdraw) source
public boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface) source
public boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap) source
public boolean eglWaitGL() source
public boolean eglWaitNative(int engine, Object bindTarget) source
public static native long nativeDisplay() native source
public static native boolean nativeInitialize(long display, int[] version) native source
public static native boolean nativeTerminate(long display) native source
public static native String nativeQueryString(long display, int name) native source
public static native int nativeError() native source
public static native int nativeChooseConfig(long display, int[] attributes, long[] out) native source

The configs that match, sorted as EGL sorts them, into out (null: the count alone); -1 for an error

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.