PDA

View Full Version : Enumerating Display Settings in EGL



brennanrusnell
10-17-2012, 06:23 PM
Hi,

I am trying to replicate a D3D9 call (EnumAdapterModes) in EGL. I am using eglChooseConfig() to filter through the available modes, but the resulting configurations (EGLConfigs) do not contain all the data I need. Specifically, I would like access to the current configuration's width, height, and refresh rate. Is this possible with EGL? If not, do I need to call platform-specific code to accomplish this? If so, what PC functions do you recommend using?

Thanks.
--
Brennan

oddhack
12-12-2012, 10:42 AM
Hi,

I am trying to replicate a D3D9 call (EnumAdapterModes) in EGL. I am using eglChooseConfig() to filter through the available modes, but the resulting configurations (EGLConfigs) do not contain all the data I need. Specifically, I would like access to the current configuration's width, height, and refresh rate. Is this possible with EGL? If not, do I need to call platform-specific code to accomplish this? If so, what PC functions do you recommend using?

Thanks.
--
Brennan

EGL has little knowledge of the overall physical display - you are expected to use platform-specific code for this, just as you must acquire platform-specific native display and window resources for EGL to associate EGL display and window surfaces with. I'm not enough of a Windows guy to help you out here, unfortunately.

brennanrusnell
12-13-2012, 10:11 AM
Thank you for clarifying this. This helps a lot :)