PDA

View Full Version : question about eglGetConfigs



praveens
11-21-2004, 05:49 PM
Hi,
In eglGetConfigs, it says that it returns a list of possible configs through the EGLConfig* configs that gets passed in. How do I look through this list to find a suitable configuration? EGLConfig appears to be a void*, so I can't look through the array.

Praveen

hmwill
11-21-2004, 10:17 PM
Using eglGetConfigAttrib(). The idea is, however, to use eglChooseConfig() to find a suitable configuration right away.

- HM

[ November 22, 2004: Message edited by: Hans-Martin Will ]

bentlegen
11-22-2004, 05:30 AM
The list returned by eglChooseConfig is sorted from best configuration to worst configuration, based on the requested attributes you've sent to the function.

- ben