PDA

View Full Version : How to detect video modes and Fullscreen i Win32?



ogracian
08-16-2001, 07:19 PM
Hello

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!

Steve_7
08-16-2001, 07:44 PM
http://nehe.gamedev.net/

Platinum
08-16-2001, 08:12 PM
extensions:

glGetString(GL_EXTENSIONS);

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

ogracian
08-17-2001, 09:52 AM
Hello

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

Regards

08-19-2001, 02:24 PM
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...