View Full Version : Full screen without GLUT Libraries under Win32

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

09-19-2000, 03: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.

09-20-2000, 12:05 AM
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).

09-20-2000, 12:16 AM
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, 01: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 !

09-20-2000, 06: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.

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