Home | History | Annotate | Download | only in egl

Lines Matching defs:config

213         EGLConfig config = (EGLConfig)i;
216 if (getConfigNativePixelFormat(config, &format)) {
217 setConfigAttrib(config, EGL_NATIVE_VISUAL_ID, format);
419 /* To get the value of attribute <a> of config <c> use the following formula:
422 EGLBoolean eglDisplay::getAttribValue(EGLConfig config, EGLint attribIdx, EGLint * value)
429 *value = *(m_configs + (intptr_t)config*m_numConfigAttribs + attribIdx);
436 EGLBoolean eglDisplay::getConfigAttrib(EGLConfig config, EGLint attrib, EGLint * value)
457 EGLBoolean ret = getAttribValue(config, m_attribs.valueFor(attrib), value);
462 void eglDisplay::dumpConfig(EGLConfig config)
465 DBG("^^^^^^^^^^ dumpConfig %d ^^^^^^^^^^^^^^^^^^", (int)config);
467 getAttribValue(config, i, &value);
468 DBG("{%d}[%d] %d\n", (int)config, i, value);
472 /* To set the value of attribute <a> of config <c> use the following formula:
475 EGLBoolean eglDisplay::setAttribValue(EGLConfig config, EGLint attribIdx, EGLint value)
482 *(m_configs + (intptr_t)config*m_numConfigAttribs + attribIdx) = value;
486 EGLBoolean eglDisplay::setConfigAttrib(EGLConfig config, EGLint attrib, EGLint value)
490 EGLBoolean ret = setAttribValue(config, m_attribs.valueFor(attrib), value);
496 EGLBoolean eglDisplay::getConfigNativePixelFormat(EGLConfig config, PixelFormat * format)
500 if ( !(getAttribValue(config, m_attribs.valueFor(EGL_RED_SIZE), &redSize) &&
501 getAttribValue(config, m_attribs.valueFor(EGL_BLUE_SIZE), &blueSize) &&
502 getAttribValue(config, m_attribs.valueFor(EGL_GREEN_SIZE), &greenSize) &&
503 getAttribValue(config, m_attribs.valueFor(EGL_ALPHA_SIZE), &alphaSize)) )
520 EGLBoolean eglDisplay::getConfigGLPixelFormat(EGLConfig config, GLenum * format)
524 if ( !(getAttribValue(config, m_attribs.valueFor(EGL_RED_SIZE), &redSize) &&
525 getAttribValue(config, m_attribs.valueFor(EGL_BLUE_SIZE), &blueSize) &&
526 getAttribValue(config, m_attribs.valueFor(EGL_GREEN_SIZE), &greenSize) &&
527 getAttribValue(config, m_attribs.valueFor(EGL_ALPHA_SIZE), &alphaSize)) )