Enumeration of display modes
Currently I am working on the configuration utility for my 3D rendering engine. It''s a part of my diploma thesis project. Now I am wondering how to enumerate all display drivers available in the system and then enumerate all display modes that are supported by given display driver and support OpenGL hardware acceleration. I know how to do it in DirectX. Now I want to do the exact thing for OpenGL renderer but I don''t know how. I tried EnumDisplayDrivers API function but it''s unsupported on Windows 9x (only NT platform). So, if anybody knows how to solve this task, please let me know. Any help would be appreciated.
I think you''re out of luck unless EnumDisplaySettings does what you want, or you want to go digging through the registry...
http://druidgames.cjb.net/
http://druidgames.cjb.net/
What EnumDisplaySettings does is only enumerates all the available video modes. This is ok but now I want to select only those supporting OpenGL hardware acceleration. Any suggestions?
Now I am trying to set every video mode and then cycle through every available pixel format and when it support OGL then I add it to combo box. Is there better solution? And what about enumerating all the available display devices?
Now I am trying to set every video mode and then cycle through every available pixel format and when it support OGL then I add it to combo box. Is there better solution? And what about enumerating all the available display devices?
>>I tried EnumDisplayDrivers API function but it''s unsupported on Windows 9x<<
where do u read this?
http://members.xoom.com/myBollux
where do u read this?
http://members.xoom.com/myBollux
Sorry, I have mistyped the function name. It''s EnumDisplayDevices rather than EnumDisplayDrivers.
April 30, 2001 05:27 PM
I did not see that you already used the PixelFormat functions but
what is wrong with them?
I also checked EnumDisplayDevices and it is available in win98 but not win95. Why do you want to use that function?
what is wrong with them?
I also checked EnumDisplayDevices and it is available in win98 but not win95. Why do you want to use that function?
I want to enumerate all available video drivers and let the user to chose one. There are some standalone 3D-only cards that doesn''t support the official ICD interface for OpenGL (eg. 3dfx Voodoo). So I want be able to dynamically link these drivers by the application.
I was surfing the net for awhile and found the solution. There is a very good library called GLS that provides an API for dynamically loading OpenGL drivers on Win32 platforms. For anybody who is interesting go to
http://www.glsetup.com/dev/gls.htm and grab your copy now!
I was surfing the net for awhile and found the solution. There is a very good library called GLS that provides an API for dynamically loading OpenGL drivers on Win32 platforms. For anybody who is interesting go to
http://www.glsetup.com/dev/gls.htm and grab your copy now!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement