Home | History | Annotate | Download | only in egl

Lines Matching defs:config

205         EGLConfig config = (EGLConfig)i;
208 if (getConfigNativePixelFormat(config, &format)) {
209 setConfigAttrib(config, EGL_NATIVE_VISUAL_ID, format);
406 /* To get the value of attribute <a> of config <c> use the following formula:
409 EGLBoolean eglDisplay::getAttribValue(EGLConfig config, EGLint attribIdx, EGLint * value)
416 *value = *(m_configs + (intptr_t)config*m_numConfigAttribs + attribIdx);
420 EGLBoolean eglDisplay::getConfigAttrib(EGLConfig config, EGLint attrib, EGLint * value)
424 EGLBoolean ret = getAttribValue(config, m_attribs.valueFor(attrib), value);
429 void eglDisplay::dumpConfig(EGLConfig config)
432 DBG("^^^^^^^^^^ dumpConfig %d ^^^^^^^^^^^^^^^^^^", (int)config);
434 getAttribValue(config, i, &value);
435 DBG("{%d}[%d] %d\n", (int)config, i, value);
439 /* To set the value of attribute <a> of config <c> use the following formula:
442 EGLBoolean eglDisplay::setAttribValue(EGLConfig config, EGLint attribIdx, EGLint value)
449 *(m_configs + (intptr_t)config*m_numConfigAttribs + attribIdx) = value;
453 EGLBoolean eglDisplay::setConfigAttrib(EGLConfig config, EGLint attrib, EGLint value)
457 EGLBoolean ret = setAttribValue(config, m_attribs.valueFor(attrib), value);
463 EGLBoolean eglDisplay::getConfigNativePixelFormat(EGLConfig config, PixelFormat * format)
467 if ( !(getAttribValue(config, m_attribs.valueFor(EGL_RED_SIZE), &redSize) &&
468 getAttribValue(config, m_attribs.valueFor(EGL_BLUE_SIZE), &blueSize) &&
469 getAttribValue(config, m_attribs.valueFor(EGL_GREEN_SIZE), &greenSize) &&
470 getAttribValue(config, m_attribs.valueFor(EGL_ALPHA_SIZE), &alphaSize)) )
487 EGLBoolean eglDisplay::getConfigGLPixelFormat(EGLConfig config, GLenum * format)
491 if ( !(getAttribValue(config, m_attribs.valueFor(EGL_RED_SIZE), &redSize) &&
492 getAttribValue(config, m_attribs.valueFor(EGL_BLUE_SIZE), &blueSize) &&
493 getAttribValue(config, m_attribs.valueFor(EGL_GREEN_SIZE), &greenSize) &&
494 getAttribValue(config, m_attribs.valueFor(EGL_ALPHA_SIZE), &alphaSize)) )