Install SGI OpenGL on Windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.