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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations