Starting OpenGL in a dialog

CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

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).

 
 


 


 


 


 



 

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read