Free Portals Example
Click here to go to the Portals example

OpenGL MDI


By Alan Baylis 28/04/2001



I have included this Multiple Document Interface example here because any game development requires a good editor for constructing the world or models. The editor should provide multiple views of the scene and therefore the most intuitive method is to use multiple windows that allow perspective and orthographic views. In my search of the internet I was unable to find any example code that showed how to program an OpenGL Multiple Document Interface application using just straight Win32 programming with no MFC so I decided to program it myself. This MDI example only shows the same scene in each child window but should be easily understandable and modifiable by anyone familiar with programming a standard MDI application using the Win32 API. I will follow up this example with a more complete editor example.
A further development on the first OpenGL MDI example. This program supports both 2D and 3D views of the scene and shows one possible way to write the vertex manipulation code.

Copyright © 1998 - 2010 Alan Baylis, All Rights Reserved