FileDocCategorySizeDatePackage
EGL14.javaAPI DocAndroid 5.1 API17886Thu Mar 12 22:22:40 GMT 2015android.opengl

EGL14

public class EGL14 extends Object
EGL 1.4

Fields Summary
public static final int
EGL_DEFAULT_DISPLAY
public static EGLContext
EGL_NO_CONTEXT
public static EGLDisplay
EGL_NO_DISPLAY
public static EGLSurface
EGL_NO_SURFACE
public static final int
EGL_FALSE
public static final int
EGL_TRUE
public static final int
EGL_SUCCESS
public static final int
EGL_NOT_INITIALIZED
public static final int
EGL_BAD_ACCESS
public static final int
EGL_BAD_ALLOC
public static final int
EGL_BAD_ATTRIBUTE
public static final int
EGL_BAD_CONFIG
public static final int
EGL_BAD_CONTEXT
public static final int
EGL_BAD_CURRENT_SURFACE
public static final int
EGL_BAD_DISPLAY
public static final int
EGL_BAD_MATCH
public static final int
EGL_BAD_NATIVE_PIXMAP
public static final int
EGL_BAD_NATIVE_WINDOW
public static final int
EGL_BAD_PARAMETER
public static final int
EGL_BAD_SURFACE
public static final int
EGL_CONTEXT_LOST
public static final int
EGL_BUFFER_SIZE
public static final int
EGL_ALPHA_SIZE
public static final int
EGL_BLUE_SIZE
public static final int
EGL_GREEN_SIZE
public static final int
EGL_RED_SIZE
public static final int
EGL_DEPTH_SIZE
public static final int
EGL_STENCIL_SIZE
public static final int
EGL_CONFIG_CAVEAT
public static final int
EGL_CONFIG_ID
public static final int
EGL_LEVEL
public static final int
EGL_MAX_PBUFFER_HEIGHT
public static final int
EGL_MAX_PBUFFER_PIXELS
public static final int
EGL_MAX_PBUFFER_WIDTH
public static final int
EGL_NATIVE_RENDERABLE
public static final int
EGL_NATIVE_VISUAL_ID
public static final int
EGL_NATIVE_VISUAL_TYPE
public static final int
EGL_SAMPLES
public static final int
EGL_SAMPLE_BUFFERS
public static final int
EGL_SURFACE_TYPE
public static final int
EGL_TRANSPARENT_TYPE
public static final int
EGL_TRANSPARENT_BLUE_VALUE
public static final int
EGL_TRANSPARENT_GREEN_VALUE
public static final int
EGL_TRANSPARENT_RED_VALUE
public static final int
EGL_NONE
public static final int
EGL_BIND_TO_TEXTURE_RGB
public static final int
EGL_BIND_TO_TEXTURE_RGBA
public static final int
EGL_MIN_SWAP_INTERVAL
public static final int
EGL_MAX_SWAP_INTERVAL
public static final int
EGL_LUMINANCE_SIZE
public static final int
EGL_ALPHA_MASK_SIZE
public static final int
EGL_COLOR_BUFFER_TYPE
public static final int
EGL_RENDERABLE_TYPE
public static final int
EGL_MATCH_NATIVE_PIXMAP
public static final int
EGL_CONFORMANT
public static final int
EGL_SLOW_CONFIG
public static final int
EGL_NON_CONFORMANT_CONFIG
public static final int
EGL_TRANSPARENT_RGB
public static final int
EGL_RGB_BUFFER
public static final int
EGL_LUMINANCE_BUFFER
public static final int
EGL_NO_TEXTURE
public static final int
EGL_TEXTURE_RGB
public static final int
EGL_TEXTURE_RGBA
public static final int
EGL_TEXTURE_2D
public static final int
EGL_PBUFFER_BIT
public static final int
EGL_PIXMAP_BIT
public static final int
EGL_WINDOW_BIT
public static final int
EGL_VG_COLORSPACE_LINEAR_BIT
public static final int
EGL_VG_ALPHA_FORMAT_PRE_BIT
public static final int
EGL_MULTISAMPLE_RESOLVE_BOX_BIT
public static final int
EGL_SWAP_BEHAVIOR_PRESERVED_BIT
public static final int
EGL_OPENGL_ES_BIT
public static final int
EGL_OPENVG_BIT
public static final int
EGL_OPENGL_ES2_BIT
public static final int
EGL_OPENGL_BIT
public static final int
EGL_VENDOR
public static final int
EGL_VERSION
public static final int
EGL_EXTENSIONS
public static final int
EGL_CLIENT_APIS
public static final int
EGL_HEIGHT
public static final int
EGL_WIDTH
public static final int
EGL_LARGEST_PBUFFER
public static final int
EGL_TEXTURE_FORMAT
public static final int
EGL_TEXTURE_TARGET
public static final int
EGL_MIPMAP_TEXTURE
public static final int
EGL_MIPMAP_LEVEL
public static final int
EGL_RENDER_BUFFER
public static final int
EGL_VG_COLORSPACE
public static final int
EGL_VG_ALPHA_FORMAT
public static final int
EGL_HORIZONTAL_RESOLUTION
public static final int
EGL_VERTICAL_RESOLUTION
public static final int
EGL_PIXEL_ASPECT_RATIO
public static final int
EGL_SWAP_BEHAVIOR
public static final int
EGL_MULTISAMPLE_RESOLVE
public static final int
EGL_BACK_BUFFER
public static final int
EGL_SINGLE_BUFFER
public static final int
EGL_VG_COLORSPACE_sRGB
public static final int
EGL_VG_COLORSPACE_LINEAR
public static final int
EGL_VG_ALPHA_FORMAT_NONPRE
public static final int
EGL_VG_ALPHA_FORMAT_PRE
public static final int
EGL_DISPLAY_SCALING
public static final int
EGL_BUFFER_PRESERVED
public static final int
EGL_BUFFER_DESTROYED
public static final int
EGL_OPENVG_IMAGE
public static final int
EGL_CONTEXT_CLIENT_TYPE
public static final int
EGL_CONTEXT_CLIENT_VERSION
public static final int
EGL_MULTISAMPLE_RESOLVE_DEFAULT
public static final int
EGL_MULTISAMPLE_RESOLVE_BOX
public static final int
EGL_OPENGL_ES_API
public static final int
EGL_OPENVG_API
public static final int
EGL_OPENGL_API
public static final int
EGL_DRAW
public static final int
EGL_READ
public static final int
EGL_CORE_NATIVE_ENGINE
Constructors Summary
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 booleaneglBindAPI(int api)

public static native booleaneglBindTexImage(EGLDisplay dpy, EGLSurface surface, int buffer)

public static native booleaneglChooseConfig(EGLDisplay dpy, int[] attrib_list, int attrib_listOffset, EGLConfig[] configs, int configsOffset, int config_size, int[] num_config, int num_configOffset)

public static native booleaneglCopyBuffers(EGLDisplay dpy, EGLSurface surface, int target)

public static native EGLContexteglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, int[] attrib_list, int offset)

public static native EGLSurfaceeglCreatePbufferFromClientBuffer(EGLDisplay dpy, int buftype, int buffer, EGLConfig config, int[] attrib_list, int offset)

public static native EGLSurfaceeglCreatePbufferFromClientBuffer(EGLDisplay dpy, int buftype, long buffer, EGLConfig config, int[] attrib_list, int offset)
{@hide}

public static native EGLSurfaceeglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, int[] attrib_list, int offset)

public static native EGLSurfaceeglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, int pixmap, int[] attrib_list, int offset)

public static EGLSurfaceeglCreateWindowSurface(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 booleaneglDestroyContext(EGLDisplay dpy, EGLContext ctx)

public static native booleaneglDestroySurface(EGLDisplay dpy, EGLSurface surface)

public static native booleaneglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, int attribute, int[] value, int offset)

public static native booleaneglGetConfigs(EGLDisplay dpy, EGLConfig[] configs, int configsOffset, int config_size, int[] num_config, int num_configOffset)

public static native EGLContexteglGetCurrentContext()

public static native EGLDisplayeglGetCurrentDisplay()

public static native EGLSurfaceeglGetCurrentSurface(int readdraw)

public static native EGLDisplayeglGetDisplay(int display_id)

public static native EGLDisplayeglGetDisplay(long display_id)
{@hide}

public static native integlGetError()

public static native booleaneglInitialize(EGLDisplay dpy, int[] major, int majorOffset, int[] minor, int minorOffset)

public static native booleaneglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)

public static native integlQueryAPI()

public static native booleaneglQueryContext(EGLDisplay dpy, EGLContext ctx, int attribute, int[] value, int offset)

public static native java.lang.StringeglQueryString(EGLDisplay dpy, int name)

public static native booleaneglQuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, int[] value, int offset)

public static native booleaneglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer)

public static native booleaneglReleaseThread()

public static native booleaneglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value)

public static native booleaneglSwapBuffers(EGLDisplay dpy, EGLSurface surface)

public static native booleaneglSwapInterval(EGLDisplay dpy, int interval)

public static native booleaneglTerminate(EGLDisplay dpy)

public static native booleaneglWaitClient()

public static native booleaneglWaitGL()

public static native booleaneglWaitNative(int engine)