Search in sources :

Example 21 with EGLContext

use of javax.microedition.khronos.egl.EGLContext in project XobotOS by xamarin.

the class EGLLogWrapper method eglGetCurrentContext.

public EGLContext eglGetCurrentContext() {
    begin("eglGetCurrentContext");
    end();
    EGLContext result = mEgl10.eglGetCurrentContext();
    returns(result);
    checkError();
    return result;
}
Also used : EGLContext(javax.microedition.khronos.egl.EGLContext)

Example 22 with EGLContext

use of javax.microedition.khronos.egl.EGLContext in project android_frameworks_base by DirtyUnicorns.

the class EGLLogWrapper method eglGetCurrentContext.

public EGLContext eglGetCurrentContext() {
    begin("eglGetCurrentContext");
    end();
    EGLContext result = mEgl10.eglGetCurrentContext();
    returns(result);
    checkError();
    return result;
}
Also used : EGLContext(javax.microedition.khronos.egl.EGLContext)

Example 23 with EGLContext

use of javax.microedition.khronos.egl.EGLContext in project android_frameworks_base by ResurrectionRemix.

the class RenderTarget method newTarget.

public static RenderTarget newTarget(int width, int height) {
    EGL10 egl = (EGL10) EGLContext.getEGL();
    EGLDisplay eglDisplay = createDefaultDisplay(egl);
    EGLConfig eglConfig = chooseEglConfig(egl, eglDisplay);
    EGLContext eglContext = createContext(egl, eglDisplay, eglConfig);
    EGLSurface eglSurface = createSurface(egl, eglDisplay, width, height);
    RenderTarget result = new RenderTarget(eglDisplay, eglContext, eglSurface, 0, true, true);
    result.addReferenceTo(eglSurface);
    return result;
}
Also used : EGLSurface(javax.microedition.khronos.egl.EGLSurface) EGL10(javax.microedition.khronos.egl.EGL10) EGLDisplay(javax.microedition.khronos.egl.EGLDisplay) EGLContext(javax.microedition.khronos.egl.EGLContext) EGLConfig(javax.microedition.khronos.egl.EGLConfig)

Example 24 with EGLContext

use of javax.microedition.khronos.egl.EGLContext in project android_frameworks_base by ResurrectionRemix.

the class RenderTarget method createContext.

private static EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) {
    int[] attrib_list = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE };
    EGLContext ctxt = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, attrib_list);
    checkContext(egl, ctxt);
    return ctxt;
}
Also used : EGLContext(javax.microedition.khronos.egl.EGLContext)

Example 25 with EGLContext

use of javax.microedition.khronos.egl.EGLContext in project android_frameworks_base by crdroidandroid.

the class EGLLogWrapper method eglCreateContext.

public EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list) {
    begin("eglCreateContext");
    arg("display", display);
    arg("config", config);
    arg("share_context", share_context);
    arg("attrib_list", attrib_list);
    end();
    EGLContext result = mEgl10.eglCreateContext(display, config, share_context, attrib_list);
    returns(result);
    checkError();
    return result;
}
Also used : EGLContext(javax.microedition.khronos.egl.EGLContext)

Aggregations

EGLContext (javax.microedition.khronos.egl.EGLContext)27 EGL10 (javax.microedition.khronos.egl.EGL10)9 EGLConfig (javax.microedition.khronos.egl.EGLConfig)8 EGLDisplay (javax.microedition.khronos.egl.EGLDisplay)8 EGLSurface (javax.microedition.khronos.egl.EGLSurface)8