Search in sources :

Example 26 with EGLDisplay

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

the class EGLLogWrapper method eglGetDisplay.

public EGLDisplay eglGetDisplay(Object native_display) {
    begin("eglGetDisplay");
    arg("native_display", native_display);
    end();
    EGLDisplay result = mEgl10.eglGetDisplay(native_display);
    returns(result);
    checkError();
    return result;
}
Also used : EGLDisplay(javax.microedition.khronos.egl.EGLDisplay)

Example 27 with EGLDisplay

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

the class EGLLogWrapper method eglGetCurrentDisplay.

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

Example 28 with EGLDisplay

use of javax.microedition.khronos.egl.EGLDisplay in project android_frameworks_base by AOSPA.

the class EGLLogWrapper method eglGetCurrentDisplay.

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

Example 29 with EGLDisplay

use of javax.microedition.khronos.egl.EGLDisplay 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 30 with EGLDisplay

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

the class RenderTarget method createDefaultDisplay.

private static EGLDisplay createDefaultDisplay(EGL10 egl) {
    EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
    checkDisplay(egl, display);
    initEgl(egl, display);
    return display;
}
Also used : EGLDisplay(javax.microedition.khronos.egl.EGLDisplay)

Aggregations

EGLDisplay (javax.microedition.khronos.egl.EGLDisplay)34 EGL10 (javax.microedition.khronos.egl.EGL10)16 EGLConfig (javax.microedition.khronos.egl.EGLConfig)12 EGLContext (javax.microedition.khronos.egl.EGLContext)8 EGLSurface (javax.microedition.khronos.egl.EGLSurface)8 SuppressLint (android.annotation.SuppressLint)1 Paint (android.graphics.Paint)1 TextPaint (android.text.TextPaint)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 ConfigChooser (org.andengine.opengl.view.ConfigChooser)1 DeviceNotSupportedException (org.andengine.util.exception.DeviceNotSupportedException)1