可以使用 eglGetConfig() 获取指定 display 支持的所有configdsp = eglGetDisplay(EGL_DEFAULT_DISPLAY);
EGLConfig xconfig[100];
EGLint xsize;
if (!eglGetConfigs(dsp, &xconfig;, 100, &xsize;)){
printf(" eglGetError() = 0x%x \n", eglGetError());
assert(0 && "eglGetConfigs failad");
}
printf(" xsize = %d \n", xsize);
for (int i = 0; i < xsize; ++i) {
EGLint value;
eglGetConfigAttrib(dsp, xconfig[i], EGL_RED_SIZE, &value;);
printf("Config %d: Red Size = %d\n", i, value);
eglGetConfigAttrib(dsp, xconfig[i],
...
继续阅读
(29)