logo资料库

freeglut3.0 官方教程.pdf

第1页 / 共94页
第2页 / 共94页
第3页 / 共94页
第4页 / 共94页
第5页 / 共94页
第6页 / 共94页
第7页 / 共94页
第8页 / 共94页
资料共94页,剩余部分请下载后查看
1. Contents
2. Introduction
3. Background
3.1 Design Philosophy
3.2 Conventions
3.2.1 Window placement and size
3.3 Terminology
3.4 Differences from GLUT 3.7
3.4.1 glutMainLoop Behaviour
3.4.2 Action on Window Closure
3.4.3 Fullscreen windows
3.4.4 Changes to Callbacks
3.4.5 String Rendering
3.4.6 Geometry Rendering
3.4.7 Extension Function Queries
4. Initialization Functions
4.1 glutInit
4.2 glutInitWindowPosition, glutInitWindowSize
4.3 glutInitDisplayMode
4.4 glutInitDisplayString
4.5 glutInitErrorFunc, glutInitWarningFunc
5. Event Processing Functions
5.1 glutMainLoop
5.2 glutMainLoopEvent
5.3 glutLeaveMainLoop
6. Window Functions
6.1 glutCreateWindow
6.2 glutCreateSubwindow
6.3 glutDestroyWindow
6.4 glutSetWindow, glutGetWindow
6.5 glutSetWindowTitle, glutSetIconTitle
6.6 glutReshapeWindow
6.7 glutPositionWindow
6.8 glutShowWindow, glutHideWindow, glutIconifyWindow
6.9 glutPushWindow, glutPopWindow
6.10 glutFullScreen, glutLeaveFullScreen, glutFullScreenToggle
7. Display Functions
7.1 glutPostRedisplay
7.2 glutPostWindowRedisplay
7.3 glutSwapBuffers
8. Mouse Cursor Functions
8.1 glutSetCursor
8.2 glutWarpPointer
9. Overlay Functions
9.1 glutEstablishOverlay
9.2 glutRemoveOverlay
9.3 glutUseLayer
9.4 glutPostOverlayRedisplay
9.5 glutPostWindowOverlayRedisplay
9.6 glutShowOverlay, glutHideOverlay
10. Menu Functions
10.1 glutCreateMenu
10.2 glutDestroyMenu
10.3 glutGetMenu, glutSetMenu
10.4 glutAddMenuEntry
10.5 glutAddSubMenu
10.6 glutChangeToMenuEntry
10.7 glutChangeToSubMenu
10.8 glutSetMenuFont
10.9 glutRemoveMenuItem
10.10 glutAttachMenu, glutDetachMenu
10.11 glutMenuDestroyFunc
11. Global Callback Registration Functions
11.1 glutTimerFunc
11.2 glutIdleFunc
11.3 glutMenuStatusFunc
11.4 glutMenuStateFunc
12. Window-Specific Callback Registration Functions
12.1 glutDisplayFunc
12.2 glutOverlayDisplayFunc
12.3 glutReshapeFunc
12.4 glutPositionFunc
12.5 glutCloseFunc
12.6 glutKeyboardFunc
12.7 glutSpecialFunc
12.8 glutKeyboardUpFunc
12.9 glutSpecialUpFunc
12.10 glutMotionFunc, glutPassiveMotionFunc
12.11 glutMouseFunc
12.12 glutMouseWheelFunc
12.13 glutEntryFunc
12.14 glutJoystickFunc
12.15 glutSpaceballMotionFunc
12.16 glutSpaceballRotateFunc
12.17 glutSpaceballButtonFunc
12.18 glutButtonBoxFunc
12.19 glutDialsFunc
12.20 glutTabletMotionFunc
12.21 glutTabletButtonFunc
12.22 glutVisibilityFunc, glutWindowStatusFunc
13. State Setting and Retrieval Functions
13.1 glutSetOption
13.2 glutGet
13.3 glutDeviceGet
13.4 glutGetModifiers
13.5 glutLayerGet
13.6 glutExtensionSupported
13.7 glutGetProcAddress
14. Font Rendering Functions
14.1 glutBitmapCharacter
14.2 glutBitmapString
14.3 glutBitmapWidth
14.4 glutBitmapLength
14.5 glutBitmapHeight
14.6 glutStrokeCharacter
14.7 glutStrokeString
14.8 glutStrokeWidth
14.9 glutStrokeWidthf
14.10 glutStrokeLength
14.11 glutStrokeLengthf
14.12 glutStrokeHeight
15. Geometric Object Rendering Functions
15.1 glutWireSphere, glutSolidSphere
15.2 glutWireTorus, glutSolidTorus
15.3 glutWireCylinder, glutSolidCylinder
15.4 glutWireCone, glutSolidCone
15.5 glutWireCube, glutSolidCube
15.6 glutWireTetrahedron, glutSolidTetrahedron
15.7 glutWireOctahedron, glutSolidOctahedron
15.8 glutWireDodecahedron, glutSolidDodecahedron
15.9 glutWireIcosahedron, glutSolidIcosahedron
15.10 glutWireRhombicDodecahedron, glutSolidRhombicDodecahedron
15.11 glutWireTeapot, glutSolidTeapot, glutWireTeacup, glutSolidTeacup, glutWireTeaspoon, glutSolidTeaspoon
15.12 glutSetVertexAttribCoord3, glutSetVertexAttribNormal, glutSetVertexAttribTexCoord2
16. Game Mode Functions
16.1 glutGameModeString
16.2 glutEnterGameMode, glutLeaveGameMode
16.3 glutGameModeGet
17. Video Resize Functions
17.1 glutVideoResizeGet
17.2 glutSetupVideoResizing, glutStopVideoResizing
17.3 glutVideoResize
17.4 glutVideoPan
18. Color Map Functions
18.1 glutSetColor, glutGetColor
18.2 glutCopyColormap
19. MultiTouch Functions
19.1 glutMultiEntryFunc ← id, GLUT_ENTERED|GLUT_LEFT
19.2 glutMultiButtonFunc ← id, x, y, button, GLUT_DOWN|GLUT_UP
19.3 glutMultiMotionFunc ← id, x, y
19.4 glutMultiPassiveFunc ← id, x, y
20. Mobile Functions
21. Miscellaneous Functions
21.1 glutSetKeyRepeat, glutIgnoreKeyRepeat
21.2 glutForceJoystickFunc
21.3 glutReportErrors
22. Usage Notes
21.1 Implementation Notes
21.2 GLUT State
21.3 "freeglut.h" Header File
21.4 References
21.5 Index
The Open-Source OpenGL Utility Toolkit (freeglut 3.0.0) Application Programming Interface Version 4.0 The freeglut Programming Consortium January, 2013 OpenGL is a trademark of Silicon Graphics, Inc. X Window System is a trademark of X Consortium, Inc. Spaceball is a registered trademark of Spatial Systems Inc. The authors have taken care in preparation of this documentation but make no expressed or implied warranty of any kind and assumes no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising from the use of information or programs contained herein. 1. Contents 1. Contents
2. Introduction 3. Background 1. Design Philosophy 2. Conventions 3. Terminology 4. Differences from GLUT 3.7 4. Initialization Functions 1. glutInit 2. glutInitWindowPosition, glutInitWindowSize 3. glutInitDisplayMode 4. glutInitDisplayString 5. glutInitErrorFunc, glutInitWarningFunc 5. Event Processing Functions 1. glutMainLoop 2. glutMainLoopEvent 3. glutLeaveMainLoop 6. Window Functions 1. glutCreateWindow 2. glutCreateSubwindow 3. glutDestroyWindow 4. glutSetWindow, glutGetWindow 5. glutSetWindowTitle, glutSetIconTitle
6. glutReshapeWindow 7. glutPositionWindow 8. glutShowWindow, glutHideWindow, glutIconifyWindow 9. glutPushWindow, glutPopWindow 10. glutFullScreen, glutLeaveFullScreen, glutFullScreenToggle 7. Display Functions 1. glutPostRedisplay 2. glutPostWindowRedisplay 3. glutSwapBuffers 8. Mouse Cursor Functions 1. glutSetCursor 2. glutWarpPointer 9. Overlay Functions 1. glutEstablishOverlay 2. glutRemoveOverlay 3. glutUseLayer 4. glutPostOverlayRedisplay 5. glutPostWindowOverlayRedisplay 6. glutShowOverlay, glutHideOverlay 10. Menu Functions
1. glutCreateMenu 2. glutDestroyMenu 3. glutGetMenu, glutSetMenu 4. glutAddMenuEntry 5. glutAddSubMenu 6. glutChangeToMenuEntry 7. glutChangeToSubMenu 8. glutSetMenuFont 9. glutRemoveMenuItem 10. glutAttachMenu, glutDetachMenu 11. glutMenuDestroyFunc 11. Global Callback Registration Functions 1. glutTimerFunc 2. glutIdleFunc 3. glutMenuStatusFunc 4. glutMenuStateFunc 12. Window-Specific Callback Registration Functions 1. glutDisplayFunc 2. glutOverlayDisplayFunc 3. glutReshapeFunc 4. glutPositionFunc 5. glutCloseFunc
6. glutKeyboardFunc 7. glutSpecialFunc 8. glutKeyboardUpFunc 9. glutSpecialUpFunc 10. glutMotionFunc, glutPassiveMotionFunc 11. glutMouseFunc 12. glutMouseWheelFunc 13. glutEntryFunc 14. glutJoystickFunc 15. glutSpaceballMotionFunc 16. glutSpaceballRotateFunc 17. glutSpaceballButtonFunc 18. glutButtonBoxFunc 19. glutDialsFunc 20. glutTabletMotionFunc 21. glutTabletButtonFunc 22. glutVisibilityFunc, glutWindowStatusFunc 13. State Setting and Retrieval Functions 1. glutSetOption 2. glutGet 3. glutDeviceGet 4. glutGetModifiers
5. glutLayerGet 6. glutExtensionSupported 7. glutGetProcAddress 14. Font Rendering Functions 1. glutBitmapCharacter 2. glutBitmapString 3. glutBitmapWidth 4. glutBitmapLength 5. glutBitmapHeight 6. glutStrokeCharacter 7. glutStrokeString 8. glutStrokeWidth 9. glutStrokeWidthf 10. glutStrokeLength 11. glutStrokeLengthf 12. glutStrokeHeight 15. Geometric Object Rendering Functions 1. glutWireSphere, glutSolidSphere 2. glutWireTorus, glutSolidTorus 3. glutWireCone, glutSolidCone 4. glutWireCube, glutSolidCube 5. glutWireTetrahedron, glutSolidTetrahedron
6. glutWireOctahedron, glutSolidOctahedron 7. glutWireDodecahedron, glutSolidDodecahedron 8. glutWireIcosahedron, glutSolidIcosahedron 9. glutWireRhombicDodecahedron, glutSolidRhombicDodecahedron 10. glutWireTeapot, glutSolidTeapot, glutWireTeacup, glutSolidTeacup, glutWireTeaspoon, glutSolidTeaspoon 11. glutSetVertexAttribCoord3, glutSetVertexAttribNormal, glutSetVertexAttribTexCoord2 16. Game Mode Functions 1. glutGameModeString 2. glutEnterGameMode, glutLeaveGameMode 3. glutGameModeGet 17. Video Resize Functions 1. glutVideoResizeGet 2. glutSetupVideoResizing, glutStopVideoResizing 3. glutVideoResize 4. glutVideoPan 18. Color Map Functions 1. glutSetColor, glutGetColor
2. glutCopyColormap 19. MultiTouch Functions 1. glutMultiEntryFunc ← id, GLUT_ENTERED|GLUT_LEFT 2. glutMultiButtonFunc ← id, x, y, button, GLUT_DOWN|GLUT_UP 3. glutMultiMotionFunc ← id, x, y 4. glutMultiPassiveFunc ← id, x, y 20. Mobile functions 1. glutInitContextFunc ← void 2. glutAppStatusFunc ← event 21. Miscellaneous Functions 1. glutSetKeyRepeat, glutIgnoreKeyRepeat 2. glutForceJoystickFunc 3. glutReportErrors 22. Usage Notes 1. Implementation Notes 2. GLUT State 3. "freeglut.h" Header File 4. References 5. Index
分享到:
收藏