In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you what are the OpenGL library functions. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
The API related to OpenGL function library include core library (gl), practical library (glu), auxiliary library (aux), utility library (glut), window library (glx, agl, wgl) and extension function library. As can be seen from the figure, gl is the core, and glu is a partial encapsulation of gl. Glx, agl, and wgl are functions for different window systems. Glut is a tool kit for cross-platform OpenGL programs, which is more powerful than aux. The extension function library is a function developed by hardware manufacturers using the extension mechanism of OpenGL for hardware update.
At present, the functions of OpenGL are mainly contained in three libraries: GL function library, GLU function library and GLUT function library.
GL library function
Color editing
GlShadeModel,glColor,glColorPointer,glIndex,glIndexPointer,glColorTableEXT,glColorSubTableEXT
Draw geometry
GlVertex,glVertexPointer,glArrayElement,glBegin, glEnd,glEdgeFlag, glEdgeFlagv,glPointSize,glLineWidth,glLineStipple,glPolygonMode,glFrontFace,glPolygonStipple,glDrawElements,glRect
Coordinate transformation
GlTranslate,glRotate,glScale,glViewPoint,glFrustum,glOrtho,glClipPlane
Stack operation
GlLoadMatrix,glMultMatrix,glMatrixMode,glPushMatrix, glPopMatrix,glPushAttrib, glPopAttrib,glPushName, glPopName,glInitName, glLoadName
Display list
GlNewList, glEndList,glCallList,glCallLists,glGenLists,glDeleteLists
GlIsList
Use lighting and material
GlNormal,glNormalPointer,glLight,glLightModel,glMaterial,glColorMaterial
Pixel operation
GlRasterPos,glBitmap,glReadPixels,glDrawPixels,glCopyPixels,glCopyTexImage1D,glCopyTexImage2D,glCopyTexSubImage1D,glCopyTexSubImage2D,glPixelZoom,glPixelStore,glPixelTransfer,glPixelMap
Texture mapping
GlTexImage1D,glTexImage2D,glTexParameter,glTexSubImage1D,glTexSubImage2D,glTexEnv,glTexCoord,glTexGen,glTexCoordPointer,glDeleteTextures
Special effect operation
GlBlendFunc,glHint,glFog
Frame cache operation
GlClear,glClearAccum,glClearColor,glClearDepth,glClearIndex,glClearStencil,glDrawBuffer,glIndexMask,glColorMask,glDepthMask,glStencilMask,glAlphaFunc,glStencilFunc,glStencilOp,glDepthFunc,glDepthRange,glLogicOp,glAccum
Curve or surface drawing
GlEvalCoord,glMap1,glMap2,glMapGrid,glEvalMesh,glEvalPoint
Query function
GlGet,glGetClipPlane,glGetColorTableEXT,glGetColorTableParameterfvEXT, glGetColorTableParameterivEXT,glGetError,glGetLight,glGetMap,glGetMaterial,glGetPixelMap,glGetPointerv,glGetPolygonStipple,glGetString,glGetTexEnv,glGetTexImage,glGetTexLevelParameter,glGetTexParameter
The GLU library function contains 43 functions with the function name prefixed with glu. OpenGL provides powerful but few drawing commands, and all more complex drawings must start with points, lines, and faces. In order to reduce the heavy programming work, Glu encapsulates the OpenGL function. By calling the functions of the core library, the Glu function provides developers with a relatively simple usage and implements some more complex operations. Glu.dll is responsible for interpreting and executing this function. The core and practical libraries in OpenGL can run on all OpenGL platforms.
Draw NURBS curves and surfaces
GluNewNurbsRenderer,gluNurbsProperty,gluNurbsCallback,gluBeginCurve, gluEndCurve,gluNurbsCurve,gluDeleteNurbsRenderer,gluBeginSurface, gluEndSurface,gluNurbsSurface,gluBeginTrim, gluEndTrim,gluPwlCurve,gluBeginPolygon, gluEndPolygon,gluPickMatrix
Draw quadratic geometric objects
GluNewQuadric,gluQuadricDrawStyle,gluQuadricNormals,gluQuadricOrientation,gluCylinder,gluSphere,gluDisk,gluPartialDisk,gluDeleteQuadric,gluQuadricTexture,gluQuadricCallback
Gridding
GluNewTess,gluTessVertex,gluTessCallback,gluTessBeginPolygon, gluTessEndPolygon,gluTessBeginContour, gluTessBeginContour,gluTessProperty,gluNextContour,gluTessNormal,gluDeleteTess
Coordinate transformation
GluOrtho2D,gluPerspective,gluLookAt,gluProject,gluUnProject
Multiple mapping
GluBuild1DMipmaps,gluBuild2DMipmaps,gluScaleImage
Query function
GluErrorString,gluGetNurbsProperty,gluGetString,gluGetTessProperty
The GLUT library function contains about 30 functions with the function name prefixed with glut. Glut is an OpenGL toolkit independent of window platforms, written by Mark KLilgrad in SGI (now in Nvidia), to hide the complexity of different window platforms API. The functions begin with glut, and they provide more complex drawing functions as a more powerful alternative to the aux library, which is interpreted and executed by glut.dll. Because the window management function in glut does not depend on the running environment, the tool library in OpenGL can run under X-Window, Windows NT, OS/2 and other systems, which is especially suitable for developing OpenGL sample programs that do not need complex interfaces. For experienced programmers, it is common to use glut to straighten out 3D graphics code before integrating it into a complete application.
Initialize and start event handling
GlutInit,glutInitWindowPosition,glutInitWindowSize,glutInitDisplayMode,glutMainLoop
Window management
GlutCreateWindow,glutCreateSubWindow,glutHideWindow,glutShowWindow,glutSetWindowTitle,glutPostRedisplay,glutSwapBuffers,glutFullScreen,glutPositionWindow,glutReshapeWindow,glutSetWindow,glutGetWindow,glutPopWindow,glutPushWindow,glutDestroyWindow,glutIconifyWindow,glutSetCursor
Overlapping layer management
GlutEstablishOverlay,glutUseLayer,glutRemoveOverlay,glutPostOverlayRedisplay,glutShowOverlay,glutHideOverlay
Menu management
GlutCreateMenu,glutAddMenuEntry,glutAddSubMenu,glutAttachMenu,glutGetMenu,glutSetMenu,glutDestroyMenu,glutChangeToMenuEntry,glutChangeToSubMenu,glutRemoveMenuItem,glutDetachMenu
Register callback function
GlutDisplayFunc,glutReshapeFunc,glutMouseFunc,glutMotionFunc,glutIdleFunc,glutVisibilityFunc,glutKeyboardFunc,glutSpecialFunc,glutOverlayDisplayFunc,glutPassiveMotionFunc,glutEntryFunc,glutSpaceballMotionFunc,glutSpaceballRotateFunc,glutSpaceballButtonFunc,glutButtonBoxFunc,glutDialsFunc,glutTableMotionFunc,glutTableButtonFunc,glutMenuStatusFunc,glutTimerFunc
Color index mapping table management
GlutSetColor,glutGetColor,glutCopyColormap
Status retrieval
GlutGet,glutLayerGet,glutDeviceGet,glutGetModifiers,glutExtensionSupported
Font drawing
GlutBitmapCharacter,glutBitmapWidth,glutStrokeCharacter,glutStrokeWidth
Geometric drawing
GlutSolidSphere, glutWireSphere,glutSolidCube, glutWireCube,glutSolidCone, glutWireCone,glutSolidTorus, glutWireTorus,glutSolidDodecahedron, glutWireDodecahedron,glutSolidOctahedron, glutWireOctahedron,glutSolidTetrahedron, glutWireTetrahedron,glutSolieIcosahedron, glutWireIcosahedron,glutSolidTeapot, glutWireTeapot
These are the OpenGL library functions that Xiaobian shares with you. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.