List of usage examples for javax.microedition.khronos.egl EGL10 EGL_ALPHA_SIZE
int EGL_ALPHA_SIZE
To view the source code for javax.microedition.khronos.egl EGL10 EGL_ALPHA_SIZE.
Click Source Link
From source file:Main.java
static int configDistance(EGL10 egl, EGLDisplay display, EGLConfig config, int want_r, int want_g, int want_b, int want_a, int want_depth, int want_stencil) { int r = getConfigAttrib(egl, display, config, EGL10.EGL_RED_SIZE, 0); int g = getConfigAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE, 0); int b = getConfigAttrib(egl, display, config, EGL10.EGL_BLUE_SIZE, 0); int a = getConfigAttrib(egl, display, config, EGL10.EGL_ALPHA_SIZE, 0); int d = getConfigAttrib(egl, display, config, EGL10.EGL_DEPTH_SIZE, 0); int s = getConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE, 0); return Math.abs(r - want_r) + Math.abs(g - want_g) + Math.abs(b - want_b) + Math.abs(a - want_a) + Math.abs(d - want_depth) + Math.abs(s - want_stencil); }
From source file:Main.java
/** * Produce a human-readable string describing the #EGLConfig (for * debug log messages)./*from www. j av a 2 s . co m*/ */ static String toString(EGL10 egl, EGLDisplay display, EGLConfig config) { return "{rgba=" + getConfigAttrib(egl, display, config, EGL10.EGL_RED_SIZE, 0) + "/" + getConfigAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE, 0) + "/" + getConfigAttrib(egl, display, config, EGL10.EGL_BLUE_SIZE, 0) + "/" + getConfigAttrib(egl, display, config, EGL10.EGL_ALPHA_SIZE, 0) + "; depth=" + getConfigAttrib(egl, display, config, EGL10.EGL_DEPTH_SIZE, 0) + "; stencil=" + getConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE, 0) + "}"; }