Return to Andrew's OpenGL Page

visit opengl.org

2. Generic OpenGL Framework for Windows

In the standard texts there are loads of examples that show how to use OpenGL in a normal window but what about fullscreen operation as required by most games? As far as I can see this is a very muddy area and I have wasted a lot of time getting fullscreen operation to work correctly with all drivers on all platforms. I still don't know if I've succeeded but the zip file below contains the source for a generic framework that allows you to perform OpenGL rendering in a window or fullscreen at any valid resolution on all the cards I've tested.

generic.zip

Note: the code contains a really original graphics demonstration, yes a spinning cube! It is supplied with project files for MS Visual C++ V6. If you create a new project remember to include opengl32.lib in the link specification.