Top Documents Download Gallery Repository
Are you looking for a Software Engineer? Check Here

23glut Module

The glut module provides functions of GLUT library.

23.1Module Function

glut.glutInit
glut.glutInit(argv[]:string) {block?}
glutInit is used to initialize the GLUT library.

glut.glutInitDisplayMode
glut.glutInitDisplayMode(mode:number):map:void
glutInitDisplayMode sets the initial display mode.

glut.glutInitDisplayString
glut.glutInitDisplayString(string:string):map:void

glut.glutInitWindowPosition
glut.glutInitWindowPosition(x:number, y:number):map:void
glutInitWindowPosition sets the initial window position.

glut.glutInitWindowSize
glut.glutInitWindowSize(width:number, height:number):map:void
glutInitWindowSize sets the initial window size.

glut.glutMainLoop
glut.glutMainLoop():void
glutMainLoop enters the GLUT event processing loop.

glut.glutCreateWindow
glut.glutCreateWindow(title:string):map {block?}
glutCreateWindow creates a top-level window.

glut.glutCreateSubWindow
glut.glutCreateSubWindow(win:number, x:number, y:number, width:number, height:number):map {block?}
glutCreateSubWindow creates a subwindow.

glut.glutDestroyWindow
glut.glutDestroyWindow(win:number):map:void
glutDestroyWindow destroys the specified window.

glut.glutPostRedisplay
glut.glutPostRedisplay():void
glutPostRedisplay marks the *current window* as needing to be redisplayed.

glut.glutPostWindowRedisplay
glut.glutPostWindowRedisplay(win:number):map:void

glut.glutSwapBuffers
glut.glutSwapBuffers():void
glutSwapBuffers swaps the buffers of the current window if double buffered.

glut.glutGetWindow
glut.glutGetWindow() {block?}
glutGetWindow returns the identifier of the current window.

glut.glutSetWindow
glut.glutSetWindow(win:number):map:void
glutSetWindow sets the current window.

glut.glutSetWindowTitle
glut.glutSetWindowTitle(title:string):map:void
glutSetWindowTitle changes the window title of the current top-level window.

glut.glutSetIconTitle
glut.glutSetIconTitle(title:string):map:void
glutSetIconTitle changes the icon title of the current top-level window.

glut.glutPositionWindow
glut.glutPositionWindow(x:number, y:number):map:void
glutPositionWindow requests a change to the position of the current window.

glut.glutReshapeWindow
glut.glutReshapeWindow(width:number, height:number):map:void
glutReshapeWindow requests a change to the size of the current window.

glut.glutPopWindow
glut.glutPopWindow():void

glut.glutPushWindow
glut.glutPushWindow():void

glut.glutIconifyWindow
glut.glutIconifyWindow():void

glut.glutShowWindow
glut.glutShowWindow():void

glut.glutHideWindow
glut.glutHideWindow():void

glut.glutFullScreen
glut.glutFullScreen():void

glut.glutSetCursor
glut.glutSetCursor(cursor:number):map:void

glut.glutWarpPointer
glut.glutWarpPointer(x:number, y:number):map:void

glut.glutEstablishOverlay
glut.glutEstablishOverlay():void

glut.glutRemoveOverlay
glut.glutRemoveOverlay():void

glut.glutUseLayer
glut.glutUseLayer(layer:number):map:void

glut.glutPostOverlayRedisplay
glut.glutPostOverlayRedisplay():void

glut.glutPostWindowOverlayRedisplay
glut.glutPostWindowOverlayRedisplay(win:number):map:void

glut.glutShowOverlay
glut.glutShowOverlay():void

glut.glutHideOverlay
glut.glutHideOverlay():void

glut.glutCreateMenu
glut.glutCreateMenu(func:function) {block?}

glut.glutDestroyMenu
glut.glutDestroyMenu(menu:number):map:void

glut.glutGetMenu
glut.glutGetMenu() {block?}

glut.glutSetMenu
glut.glutSetMenu(menu:number):map:void

glut.glutAddMenuEntry
glut.glutAddMenuEntry(label:string, value:number):map:void

glut.glutAddSubMenu
glut.glutAddSubMenu(label:string, submenu:number):map:void

glut.glutChangeToMenuEntry
glut.glutChangeToMenuEntry(item:number, label:string, value:number):map:void

glut.glutChangeToSubMenu
glut.glutChangeToSubMenu(item:number, label:string, submenu:number):map:void

glut.glutRemoveMenuItem
glut.glutRemoveMenuItem(item:number):map:void

glut.glutAttachMenu
glut.glutAttachMenu(button:number):map:void

glut.glutDetachMenu
glut.glutDetachMenu(button:number):map:void

glut.glutDisplayFunc
glut.glutDisplayFunc(func:function:nil):void

glut.glutReshapeFunc
glut.glutReshapeFunc(func:function:nil):void

glut.glutKeyboardFunc
glut.glutKeyboardFunc(func:function:nil):void

glut.glutMouseFunc
glut.glutMouseFunc(func:function:nil):void

glut.glutMotionFunc
glut.glutMotionFunc(func:function:nil):void

glut.glutPassiveMotionFunc
glut.glutPassiveMotionFunc(func:function:nil):void

glut.glutEntryFunc
glut.glutEntryFunc(func:function:nil):void

glut.glutVisibilityFunc
glut.glutVisibilityFunc(func:function:nil):void

glut.glutIdleFunc
glut.glutIdleFunc(func:function:nil):void

glut.glutTimerFunc
glut.glutTimerFunc(millis:number, func:function:nil, value:number):void

glut.glutMenuStateFunc
glut.glutMenuStateFunc(func:function:nil):void

glut.glutSpecialFunc
glut.glutSpecialFunc(func:function:nil):void

glut.glutSpaceballMotionFunc
glut.glutSpaceballMotionFunc(func:function:nil):void

glut.glutSpaceballRotateFunc
glut.glutSpaceballRotateFunc(func:function:nil):void

glut.glutSpaceballButtonFunc
glut.glutSpaceballButtonFunc(func:function:nil):void

glut.glutButtonBoxFunc
glut.glutButtonBoxFunc(func:function:nil):void

glut.glutDialsFunc
glut.glutDialsFunc(func:function:nil):void

glut.glutTabletMotionFunc
glut.glutTabletMotionFunc(func:function:nil):void

glut.glutTabletButtonFunc
glut.glutTabletButtonFunc(func:function:nil):void

glut.glutMenuStatusFunc
glut.glutMenuStatusFunc(func:function:nil):void

glut.glutOverlayDisplayFunc
glut.glutOverlayDisplayFunc(func:function:nil):void

glut.glutWindowStatusFunc
glut.glutWindowStatusFunc(func:function:nil):void

glut.glutKeyboardUpFunc
glut.glutKeyboardUpFunc(func:function:nil):void

glut.glutSpecialUpFunc
glut.glutSpecialUpFunc(func:function:nil):void

glut.glutJoystickFunc
glut.glutJoystickFunc(func:function:nil, pollInterval:number):void

glut.glutSetColor
glut.glutSetColor(ndx:number, red:number, green:number, blue:number):void

glut.glutGetColor
glut.glutGetColor(ndx:number, component:number):map {block?}

glut.glutCopyColormap
glut.glutCopyColormap(win:number):map:void

glut.glutGet
glut.glutGet(type:number):map {block?}

glut.glutDeviceGet
glut.glutDeviceGet(type:number):map {block?}

glut.glutExtensionSupported
glut.glutExtensionSupported(name:string):map {block?}

glut.glutGetModifiers
glut.glutGetModifiers() {block?}

glut.glutLayerGet
glut.glutLayerGet(type:number):map {block?}

glut.glutGetProcAddress
glut.glutGetProcAddress(procName:string):map:void {block?}

glut.glutBitmapCharacter
glut.glutBitmapCharacter(font:glut.Font, character:number):map:void

glut.glutBitmapWidth
glut.glutBitmapWidth(font:glut.Font, character:number):map {block?}

glut.glutStrokeCharacter
glut.glutStrokeCharacter(font:glut.Font, character:number):map:void

glut.glutStrokeWidth
glut.glutStrokeWidth(font:glut.Font, character:number):map {block?}

glut.glutBitmapLength
glut.glutBitmapLength(font:glut.Font, string:string):map {block?}

glut.glutStrokeLength
glut.glutStrokeLength(font:glut.Font, string:string):map {block?}

glut.glutWireSphere
glut.glutWireSphere(radius:number, slices:number, stacks:number):map:void

glut.glutSolidSphere
glut.glutSolidSphere(radius:number, slices:number, stacks:number):map:void

glut.glutWireCone
glut.glutWireCone(base:number, height:number, slices:number, stacks:number):map:void

glut.glutSolidCone
glut.glutSolidCone(base:number, height:number, slices:number, stacks:number):map:void

glut.glutWireCube
glut.glutWireCube(size:number):map:void

glut.glutSolidCube
glut.glutSolidCube(size:number):map:void

glut.glutWireTorus
glut.glutWireTorus(innerRadius:number, outerRadius:number, sides:number, rings:number):map:void

glut.glutSolidTorus
glut.glutSolidTorus(innerRadius:number, outerRadius:number, sides:number, rings:number):map:void

glut.glutWireDodecahedron
glut.glutWireDodecahedron():void

glut.glutSolidDodecahedron
glut.glutSolidDodecahedron():void

glut.glutWireTeapot
glut.glutWireTeapot(size:number):map:void

glut.glutSolidTeapot
glut.glutSolidTeapot(size:number):map:void

glut.glutWireOctahedron
glut.glutWireOctahedron():void

glut.glutSolidOctahedron
glut.glutSolidOctahedron():void

glut.glutWireTetrahedron
glut.glutWireTetrahedron():void

glut.glutSolidTetrahedron
glut.glutSolidTetrahedron():void

glut.glutWireIcosahedron
glut.glutWireIcosahedron():void

glut.glutSolidIcosahedron
glut.glutSolidIcosahedron():void

glut.glutVideoResizeGet
glut.glutVideoResizeGet(param:number):map {block?}

glut.glutSetupVideoResizing
glut.glutSetupVideoResizing():void

glut.glutStopVideoResizing
glut.glutStopVideoResizing():void

glut.glutVideoResize
glut.glutVideoResize(x:number, y:number, width:number, height:number):map:void

glut.glutVideoPan
glut.glutVideoPan(x:number, y:number, width:number, height:number):map:void

glut.glutReportErrors
glut.glutReportErrors():void

glut.glutIgnoreKeyRepeat
glut.glutIgnoreKeyRepeat(ignore:number):map:void

glut.glutSetKeyRepeat
glut.glutSetKeyRepeat(repeatMode:number):map:void

glut.glutForceJoystickFunc
glut.glutForceJoystickFunc():void

glut.glutGameModeString
glut.glutGameModeString(string:string):map:void

glut.glutEnterGameMode
glut.glutEnterGameMode() {block?}

glut.glutLeaveGameMode
glut.glutLeaveGameMode():void

glut.glutGameModeGet
glut.glutGameModeGet(mode:number):map {block?}

23.2Thanks

This module uses freeglut which official site is:

http://freeglut.sourceforge.net/


Copyright (C) 2011-2017 ypsitau