egl :: EGLDisplay :: config_attrib
EGLConfigAttribs
# Can be used directly, but it is preferable to use a `EGLConfigAttribs`
fun config_attrib(config: EGLConfig, attribute: Int): Int `{
EGLint val;
EGLBoolean r = eglGetConfigAttrib(self, config, attribute, &val);
if (r == EGL_FALSE)
return -1;
else
return val;
`}
lib/egl/egl.nit:107,2--115,3