View Full Version : Full screen without GLUT Libraries under Win32
09-19-2000, 11:03 AM
How to force my demo run with full-screen without any external libraries ? Please help !
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.
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).
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/
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 !
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.
09-21-2000, 08:21 AM
Thx to all. I worked. http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.