• Home
  • Raw
  • Download

Lines Matching refs:egl

43 import javax.microedition.khronos.egl.EGL10;
44 import javax.microedition.khronos.egl.EGLConfig;
45 import javax.microedition.khronos.egl.EGLContext;
46 import javax.microedition.khronos.egl.EGLDisplay;
112 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
114 checkEglError("Before eglCreateContext", egl); in createContext()
116 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
117 checkEglError("After eglCreateContext", egl); in createContext()
121 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
122 egl.eglDestroyContext(display, context); in destroyContext()
126 private static void checkEglError(String prompt, EGL10 egl) { in checkEglError() argument
128 while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) { in checkEglError()
158 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
163 egl.eglChooseConfig(display, s_configAttribs2, null, 0, num_config); in chooseConfig()
174 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
177 printConfigs(egl, display, configs); in chooseConfig()
181 return chooseConfig(egl, display, configs); in chooseConfig()
184 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
187 int d = findConfigAttrib(egl, display, config, in chooseConfig()
189 int s = findConfigAttrib(egl, display, config, in chooseConfig()
197 int r = findConfigAttrib(egl, display, config, in chooseConfig()
199 int g = findConfigAttrib(egl, display, config, in chooseConfig()
201 int b = findConfigAttrib(egl, display, config, in chooseConfig()
203 int a = findConfigAttrib(egl, display, config, in chooseConfig()
212 private int findConfigAttrib(EGL10 egl, EGLDisplay display, in findConfigAttrib() argument
215 if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) { in findConfigAttrib()
221 private void printConfigs(EGL10 egl, EGLDisplay display, in printConfigs() argument
227 printConfig(egl, display, configs[i]); in printConfigs()
231 private void printConfig(EGL10 egl, EGLDisplay display, in printConfig() argument
307 if ( egl.eglGetConfigAttrib(display, config, attribute, value)) { in printConfig()
311 while (egl.eglGetError() != EGL10.EGL_SUCCESS); in printConfig()