Related function libraries of OpenGL

Source: Internet
Author: User

OpenGL Function library relatedAPICore Library(GL), Utility Library(Glu), Auxiliary Library(Aux), Utility Library(GLUT), Window Library(Glx,AGL,WGL)And extended function libraries. Slave chart1As you can see,GLIs the core,GLUYesGL.Glx,AGL,WGLIs a function for different window systems.GLUTIs cross-platformOpenGLProgramTool Kit,AuxPowerful functions. Extended Function libraries are used by hardware vendors to update hardware.OpenGLExtended functions. The following describes these databases in detail.
1 .
OpenGL Core Library
The core library includes115Functions. The prefix of the function name isGL.
These functions are used for conventional and core graph processing. This function is composedGl. dllTo explain the execution. Because many functions can receive different numbers of the following classes. Data Type parameters, so the derived functions are as many300Multiple.
2 .
OpenGL Utility LibraryThe OpenGL utility Library (Glu)
Include43Functions. The prefix of the function name isGLU.
OpenGL Provides powerful but few drawing commands, and all the more complex drawings must be drawn from points. Line and plane start.GLUIn order to reduce the heavy programming workOpenGLFunction,GLUBy calling the functions of the core library, the function provides relatively simple usage for developers and implements some complex operations. This function is composedGlu. dllTo explain the execution.OpenGLInOpenGLRun on the platform.
3 .
OpenGL Auxiliary Database Include 31 Functions. The function name prefix is Aux .

These functions provide window management, input and output processing, and some simple 3D objects. This function is composedGlaux. dllTo explain the execution. CreateAuxLibrary is for learning and writingOpenGLProgram, which is more like a preparatory foundation for testing ideas.AuxLibrary inWindowsThere are many implementation errors, so it is easy to cause frequent crashes. In cross-platform programming examples and Demos,AuxTo a large extentGLUTDatabase replacement.OpenGLThe secondary library in cannot beOpenGLRun on the platform.
4 .
OpenGL Tool LibraryOpenGL utility Toolkit
Contains about30Multiple Functions with the prefixGLUT.
GLUT Does not rely on the window PlatformOpenGLToolkit, composedMark klilgradInSGIWrite (now inNVIDIA) To Hide different Windows PlatformsAPIComplexity. FunctionGLUTStartingAuxA more powerful alternative to the library, providing more complex rendering functions.GLUT. dllTo explain the execution. BecauseGLUTThe window management function in does not depend on the runtime environment. ThereforeOpenGLThe tool library in can be found inX-window, Windows NT, OS/2And other systems, especially suitable for development without complex interfacesOpenGLSample program. For experienced programmersGLUTStraighten out3DGraphicsCodeAnd then integrated into the complete application.

through the above explanation, we have a rough understanding of the files required by OpenGL . GL , Glu , and glut . Originally, I really didn't know much about OpenGL , because everything can be stored on the Internet and I hate English, therefore, I did not pay attention to the introduction to the official website and took many detours. Finally, we can see that the original operating system has integrated OpenGL , and the versions supported by different systems are different and cannot be updated. For example, XP uses OpenGL 1.1 , the version of Vista is updated. So what else do we need? The first is the header file of GL , the second is Glu , third, glut

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.