How to detect video modes and Fullscreen i Win32?


I am a novice programmer in OpenGL and I am looking for some code or tutorials about how to init the OpenGL to run applications in Fullscreen using VisualC++. By other hand anyone could tell me if OpenGL, has routines to enum availables video modes, graphics adapters, etc. like those in DirectX?

PS: how can I detect the OpenGL extensions supported by a video card?

I really appreciate any help, thanks!



(more about it is in those NeHe tutorials, I think tutorial nr.22 but I am not sure)


Thanks for your help, I will take a look at Nehe site!


hey… to change display setting programattically in windows, use EnumDisplaySettings to get the current settings, use ChangeDisplaySettings to change them and then use ChangeDisplaySettings with the old information. to create a fullscreen window, use the following window styles: WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, and set the window size to the size of your new desktop resolution.

hope this helps dude…