Home | History | Annotate | Download | only in egl

Lines Matching defs:config

199         EGLConfig config = (EGLConfig)i;
202 if (getConfigNativePixelFormat(config, &format)) {
203 setConfigAttrib(config, EGL_NATIVE_VISUAL_ID, format);
378 /* To get the value of attribute <a> of config <c> use the following formula:
381 EGLBoolean eglDisplay::getAttribValue(EGLConfig config, EGLint attribIdx, EGLint * value)
388 *value = *(m_configs + (intptr_t)config*m_numConfigAttribs + attribIdx);
392 EGLBoolean eglDisplay::getConfigAttrib(EGLConfig config, EGLint attrib, EGLint * value)
396 EGLBoolean ret = getAttribValue(config, m_attribs.valueFor(attrib), value);
401 void eglDisplay::dumpConfig(EGLConfig config)
404 DBG("^^^^^^^^^^ dumpConfig %d ^^^^^^^^^^^^^^^^^^", (int)config);
406 getAttribValue(config, i, &value);
407 DBG("{%d}[%d] %d\n", (int)config, i, value);
411 /* To set the value of attribute <a> of config <c> use the following formula:
414 EGLBoolean eglDisplay::setAttribValue(EGLConfig config, EGLint attribIdx, EGLint value)
421 *(m_configs + (intptr_t)config*m_numConfigAttribs + attribIdx) = value;
425 EGLBoolean eglDisplay::setConfigAttrib(EGLConfig config, EGLint attrib, EGLint value)
429 EGLBoolean ret = setAttribValue(config, m_attribs.valueFor(attrib), value);
435 EGLBoolean eglDisplay::getConfigNativePixelFormat(EGLConfig config, PixelFormat * format)
439 if ( !(getAttribValue(config, m_attribs.valueFor(EGL_RED_SIZE), &redSize) &&
440 getAttribValue(config, m_attribs.valueFor(EGL_BLUE_SIZE), &blueSize) &&
441 getAttribValue(config, m_attribs.valueFor(EGL_GREEN_SIZE), &greenSize) &&
442 getAttribValue(config, m_attribs.valueFor(EGL_ALPHA_SIZE), &alphaSize)) )
459 EGLBoolean eglDisplay::getConfigGLPixelFormat(EGLConfig config, GLenum * format)
463 if ( !(getAttribValue(config, m_attribs.valueFor(EGL_RED_SIZE), &redSize) &&
464 getAttribValue(config, m_attribs.valueFor(EGL_BLUE_SIZE), &blueSize) &&
465 getAttribValue(config, m_attribs.valueFor(EGL_GREEN_SIZE), &greenSize) &&
466 getAttribValue(config, m_attribs.valueFor(EGL_ALPHA_SIZE), &alphaSize)) )