PDA

View Full Version : Fullscreen Rendering



crappy04
04-12-2000, 06:52 PM
Does anyone know how to get OpenGL in Win32 to use Fullscreen mode
thanks
porter

Gorg
04-12-2000, 08:00 PM
you have to use changedisplaysettings(&devmode, CDS_FULLSCREEN).

devmode is a structure for resolution. If you don't have window platform sdk look at it at www.msdn.com (http://www.msdn.com) under library

crappy04
04-12-2000, 09:16 PM
Ok i sorta got that to work except that now the screen flashes black then just goes to the normal window. i have the documentation but i could not find the problem to fix it
thanks for you help
porter

Bob
04-13-2000, 01:08 AM
Visit NeHe's tutorials at http://nehe.gamedev.net/ . Most examples have code for Win32 fullscreen.

sebastian
04-13-2000, 03:04 AM
i can't figure out how to go fullscreen in an MFC-application,it nearly has to be the same,but because MFC hides so much window-stuff,i had problems there..

Gorg
04-13-2000, 07:18 AM
crappy, the flashing and going back to the window is probably due because you ask for an unsupported resolution.

Humus
04-13-2000, 11:05 AM
It might also be that your window is not the size of the resolution to which you try to change. You should also make your window without borders.

crappy04
04-13-2000, 12:57 PM
thanks i got it working now