PDA

View Full Version : Full screen without GLUT Libraries under Win32



KoNeK
09-19-2000, 11:03 AM
How to force my demo run with full-screen without any external libraries ? Please help !

DFrey
09-19-2000, 02:21 PM
Read up on the Win32 API functions EnumDisplaySettings and ChangeDisplaySettings. Those are what you need to be able to do this without any other libs.

KoNeK
09-19-2000, 11:05 PM
Thx, but I've got BC 4.52 and in my Windows API help list there aren't such commands as
ChangeDisplaySettings and EnumDisplay Settings. (I hate MSVC++ 6.0).

paddy
09-19-2000, 11:16 PM
I HATE MSVC TOO http://www.opengl.org/discussion_boards/ubb/smile.gif
I use the cygwin GCC compiler and OpenGL functions are perfectly implemented.
It's downloadable for FREE USE at http://sources.redhat.com/cygwin/

Nicolas Lelong
09-20-2000, 12:32 AM
MSVC, BC or whatever, you should be able to use these API functions, they are not from MFC or some kinda wierd lib ; they're definitely from the Windows API (user32.(lib|dll)).

Perhaps you should get a more recent API doc ... or try consulting MSDN http://www.opengl.org/discussion_boards/ubb/wink.gif !

mother
09-20-2000, 05:11 AM
Doing fullscreen is fairly easy, assuming you already know how to create an OpenGL window.

If you want your window to be fullscreen, you need to have WS_POPUP as part of the window style. This removes the title bar and borders from your window.

You also should probably use ChangeDisplaySettings() to switch to the appropriate video resolution.

KoNeK
09-21-2000, 08:21 AM
Thx to all. I worked. http://www.opengl.org/discussion_boards/ubb/smile.gif