OpenGL 库函数汇总[GLU 库函数&GLUT 函数库]

2011-10-11_111518

目前OpenGL的函数主要包含在3个库中
1.GL 函数库
2.GLU 函数库
3.GLUT 函数库

2.GLU 函数库


绘制 NURBS 曲线和曲面
——————————

gluNewNurbsRenderer
gluNurbsProperty
gluNurbsCallback
gluBeginCurve , gluEndCurve
gluNurbsCurve
gluDeleteNurbsRenderer
gluBeginSurface , gluEndSurface
gluNurbsSurface
gluBeginTrim , gluEndTrim
gluPwlCurve
gluBeginPolygon , gluEndPolygon
gluPickMatrix

绘制二次几何物体
———————————

gluNewQuadric
gluQuadricDrawStyle
gluQuadricNormals
gluQuadricOrientation
gluCylinder
gluSphere
gluDisk
gluPartialDisk
gluDeleteQuadric
gluQuadricTexture
gluQuadricCallback

网格化
——————————

gluNewTess
gluTessVertex
gluTessCallback
gluTessBeginPolygon , gluTessEndPolygon
gluTessBeginContour , gluTessBeginContour
gluTessProperty
gluNextContour
gluTessNormal
gluDeleteTess

坐标转换
——————————

gluOrtho2D
gluPerspective
gluLookAt
gluProject
gluUnProject

多重映射
——————————

gluBuild1DMipmaps
gluBuild2DMipmaps
gluScaleImage

查询函数
—————————–

gluErrorString
gluGetNurbsProperty
gluGetString
gluGetTessProperty

3.GLUT 库函数


初始化和启动事件处理
————————-
glutInit
glutInitWindowPosition
glutInitWindowSize
glutInitDisplayMode
glutMainLoop
窗口管理
————————-
glutCreateWindow
glutCreateSubWindow
glutHideWindow
glutShowWindow
glutSetWindowTitle
glutPostRedisplay
glutSwapBuffers
glutFullScreen
glutPositionWindow
glutReshapeWindow
glutSetWindow
glutGetWindow
glutPopWindow
glutPushWindow
glutDestroyWindow
glutIconifyWindow
glutSetCursor
重叠层管理
————————-
glutEstablishOverlay
glutUseLayer
glutRemoveOverlay
glutPostOverlayRedisplay
glutShowOverlay
glutHideOverlay
菜单管理
————————-

glutCreateMenu
glutAddMenuEntry
glutAddSubMenu
glutAttachMenu
glutGetMenu
glutSetMenu
glutDestroyMenu
glutChangeToMenuEntry
glutChangeToSubMenu
glutRemoveMenuItem
glutDetachMenu

注册回调函数
——————————-
glutDisplayFunc
glutReshapeFunc
glutMouseFunc
glutMotionFunc
glutIdleFunc
glutVisibilityFunc
glutKeyboardFunc
glutSpecialFunc
glutOverlayDisplayFunc
glutPassiveMotionFunc
glutEntryFunc
glutSpaceballMotionFunc
glutSpaceballRotateFunc
glutSpaceballButtonFunc
glutButtonBoxFunc
glutDialsFunc
glutTableMotionFunc
glutTableButtonFunc
glutMenuStatusFunc
glutTimerFunc
颜色索引映射表管理
——————————-
glutSetColor
glutGetColor
glutCopyColormap
状态检索
——————————-
glutGet
glutLayerGet
glutDeviceGet
glutGetModifiers
glutExtensionSupported
字体绘制
——————————-
glutBitmapCharacter
glutBitmapWidth
glutStrokeCharacter
glutStrokeWidth
几何图形绘制
——————————-
glutSolidSphere , glutWireSphere
glutSolidCube , glutWireCube
glutSolidCone , glutWireCone
glutSolidTorus , glutWireTorus
glutSolidDodecahedron , glutWireDodecahedron
glutSolidOctahedron , glutWireOctahedron
glutSolidTetrahedron , glutWireTetrahedron
glutSolieIcosahedron , glutWireIcosahedron
glutSolidTeapot , glutWireTeapot

点赞

发表评论