Install the SGI version on the Windows platform OpenGL

xiaoxiao2021-03-06  55

OpenGL SDK on the Windows platform is Microsoft itself, and SGI has also implemented a set of OpenGL SDK. Some friends who saw some friends said that the OpenGL of the SGI version was good, so I had an OpenGL installed to install the SGI version. So this article is this article. First. Purpose: Install the OpenGL of the SGI version on the Windows platform while making the Windows version of OpenGL and SGI's Opneg's peaceful coexistence. We can use the OpenGL API. II. 2. Environment: Windows 2000 (SP4) VC.NET 3. Steps: 1. Download the SGI version OpenGL SDK: You can go to http://www.berkelium.com /Opengl/sgi-opengl.html Download, the downloaded file is OpenGL2.exe, run this program, install OpenGL SDK, and copy the dynamic connection OpenGL.DLL, Glu.dll to the system directory. (Note: The Windows version of the OpenGL dynamic connection library is OpenGL32.dll, Glu32.dll, with a "32" suffix.) 2. Copy the header file in the SDK to the corresponding directory of the compiler, Take VC.NET as an example, copy the library OpenGL.LIB, Glu.Lib to Program Files / Microsoft Visual Studio .NET 2003 / VC7 / PlatformSDK / LIB, copy to Program Files / Microsoft Visual Studio .NET 2003 / VC7 / Platformsdk / Include. (Note: The header file of the Windows version of OpenGL is put in ../include/gl directory, when using it, be careful not to confuse.) This is installed After it is finished. Use the Windows version of OpenGL: Gets the header file: #include

#include

#include

Connection library file:

OpenGL32.LIB

Glu32.lib

GLAUX32.LIB

Use the SGI version of OpenGL:

Contains header files:

#include

#include

Connection library file:

OpenGL.LIB

glu.lib

GLUT32.LIB

So everything is OK, you can start our 3D trip :)

Note: The OpenGL version from Microsoft's Windows is OpenGL 1.1; with the version of the Glu 1.2 released with OpenGL 1.2 is Glu 1.2, with the version of the Glu 1.3 released in the OpenGL 1.3 in the later article, I may write An article on how to install, configure and use OpenGL 1.2 or above, because I will not now :)

转载请注明原文地址:https://www.9cbs.com/read-116429.html

New Post(0)