dcsimg
 

Starting OpenGL in a dialog

Saturday Aug 8th 1998 by Pierre ALLIEZ

Starting OpenGL in a dialog

Download project files 1420KB

This is the smallest example to make :

  • Antialiasing
  • Gouraud
  • Texture mapping
  • Texture lighting
  • Texture transparency
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).
 
 

 

 

 

 

 
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved