★ wanayoo — archive 1999 http://devcentral.iftech.com/learning/tutorials/mfc-win32/opengl/Nouvelle recherche | Portail wanayoo
.

Interface Technologies, Inc.
DevCentral Learning Center
DevCentral Home Edit Profile About DevCentral
Learning Center Home Tutorials Q&A CodeGuru


DevJournal




A Resource for Professional Developers




Using OpenGL in Visual C++ Version 4.x
by Alan Oursland

Series Overview

With the release of NT 3.5, OpenGL became a part of the Windows operating system. Now with Windows 95 support for OpenGL and low price graphics accelerators becoming readily available even on low end machines, the prospects of using OpenGL on any Windows machine is becoming more attractive every day. If you are interested in creating quality 2-D or 3-D graphics in Windows, or if you already know another variant of GL, keep reading. This tutorial will show you how to use OpenGL and some of its basic commands.

GL is a programming interface designed by Silicon Graphics. OpenGL is a generic version of the interface made available to a wide variety of outside vendors in the interest of standardization of the language. OpenGL allows you to create high quality 3-D images without dealing with the heavy math usually associated with computer graphics. OpenGL handles graphics primitives, 2-D and 3-D transformations, lighting, shading, Z-buffering, hidden surface removal, and a host of other features. I'll use some of these topics in the sample programs following; others I'll leave to you to explore yourself. If you want to learn more about OpenGL you can look in the VC++ 4.0 InfoViewer under SDKs - Win32 SDK - OpenGL. You may also find the following book useful:

  1. Opengl Reference Manual : The Official Reference Document to Opengl, Version 1.1 by Opengl Architecture Review Board, Chris Frazier (Editor), Renate Kempf Paperback 2nd edition (January 1997) Addison-Wesley Pub Co; ISBN: 0201461404
    Purchase from Amazon.com

Here is the list of topics covered in this tutorial:

  1. Writing an OpenGL Program (GLSample1)
  2. Simple 2-D Graphics (GLSample2)
  3. Transformations and the Matrix Stack (GLSample3)
  4. Simple 3-D Graphics (GLSample4)
  5. Conclusion

OpenGL 1.1 for Windows 95 is now available from Microsoft. You will need these libraries if you wish to use OpenGL under Windows95. Download the file /softlib/MSLFILES/Opengl95.exe from ftp.microsoft.com or click here.



<<Main>>



WebSideStory Award - Top
		Site!


Copyright © 1998 Interface Technologies, Inc. All Rights Reserved.

Questions or comments about DevCentral, email:
devcentral@iftech.com

This site is best viewed with
Get Microsoft Internet Explorer