OpenGL sdks on Windows platforms are implemented by Microsoft, and SGI also implements a set of OpenGL sdks. Some friends on the Internet say that SGI's OpenGL is good, so I had the idea of installing OpenGL for SGI, so I had this article.
I. Objective: To install SGI OpenGL on Windows and make windows OpenGL and SGI opnegl coexist. We can easily choose to use that OpenGL API.
II. Environment: Windows 2000 (SP4) + VC. net
3. steps:
1. Download the OpenGL SDK For SGI: Download it at http://www.berkelium.com/opengl/sgi-opengl.html.
The file is opengl2.exe. When you run this program, the OpenGL SDK is installed and the dynamic Connection Library OpenGL. dll and Glu. dll are copied.
To the system directory. (Note: Windows version of OpenGL dynamic Connection Library is opengl32.dll, glu32.dll, there is an additional "32" suffix .)
2. Copy the header file and library file in the SDK to the corresponding directory of the compiler. Take VC. NET as an example to copy the library files OpenGL. lib and Glu. Lib.
Go to program files/Microsoft Visual Studio. NET 2003/vc7/platformsdk/lib
Copy the header file Gl. h and Glu. h to program files/Microsoft Visual Studio. NET 2003/
In vc7/platformsdk/include.
(Note: the Windows version of OpenGL header files are stored in the./include/GL directory. Do not confuse them when using them .)
The installation is complete.
Use Windows OpenGL:
Include the header file:
# Include
# Include
# Include
Connection Library file:
Opengl32.lib
Glu32.lib
Glaux32.lib
Use SGI OpenGL:
Include header file:
# Include
# Include
Connection Library file:
OpenGL. Lib
Glu. Lib
Glu32.lib
In this way, everything is okay. Now we can start our 3D journey :)
Note: In Microsoft Windows, the self-contained OpenGL version is OpenGL 1.1;
The version of Glu released by OpenGL 1.1 is Glu 1.2, and the version of Glu released by OpenGL 1.2 is
In future articles, I may write an article about how to install, configure, and use OpenGL 1.2 or a later version, because I will not :)