Starting OpenGL in a dialog


This article was contributed by Pierre ALLIEZ.

Download project files 1420KB

This is the smallest example to make :

This sample create an OpenGL rendering context in a dialog box and draw a simple cube. We can manipulate the object with the mouse, and change texture file with a popup menu item. A timer animate a rotation. Texture files are .BMP files (2^n * 2^m * 24 bits).