glut

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package glut provides purego-based Go bindings for the macOS GLUT framework.

Apple documentation: https://developer.apple.com/documentation/glut

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlutAddMenuEntry

func GlutAddMenuEntry(label string, value int)

C function: glutAddMenuEntry

func GlutAddSubMenu

func GlutAddSubMenu(label string, submenu int)

C function: glutAddSubMenu

func GlutAttachMenu

func GlutAttachMenu(button int)

C function: glutAttachMenu

func GlutBitmap8By13

func GlutBitmap8By13() uintptr

func GlutBitmap9By15

func GlutBitmap9By15() uintptr

func GlutBitmapCharacter

func GlutBitmapCharacter(font unsafe.Pointer, character int)

C function: glutBitmapCharacter

func GlutBitmapHelvetica10

func GlutBitmapHelvetica10() uintptr

func GlutBitmapHelvetica12

func GlutBitmapHelvetica12() uintptr

func GlutBitmapHelvetica18

func GlutBitmapHelvetica18() uintptr

func GlutBitmapLength

func GlutBitmapLength(font unsafe.Pointer, string_ *uint8) int

C function: glutBitmapLength

func GlutBitmapTimesRoman10

func GlutBitmapTimesRoman10() uintptr

func GlutBitmapTimesRoman24

func GlutBitmapTimesRoman24() uintptr

func GlutBitmapWidth

func GlutBitmapWidth(font unsafe.Pointer, character int) int

C function: glutBitmapWidth

func GlutButtonBoxFunc

func GlutButtonBoxFunc(func_ unsafe.Pointer)

C function: glutButtonBoxFunc

func GlutChangeToMenuEntry

func GlutChangeToMenuEntry(item int, label string, value int)

C function: glutChangeToMenuEntry

func GlutChangeToSubMenu

func GlutChangeToSubMenu(item int, label string, submenu int)

C function: glutChangeToSubMenu

func GlutCheckLoop

func GlutCheckLoop()

C function: glutCheckLoop

func GlutCopyColormap

func GlutCopyColormap(win int)

C function: glutCopyColormap

func GlutCreateMenu

func GlutCreateMenu(arg unsafe.Pointer) int

C function: glutCreateMenu

func GlutCreateSubWindow

func GlutCreateSubWindow(win int, x int, y int, width int, height int) int

C function: glutCreateSubWindow

func GlutCreateWindow

func GlutCreateWindow(title string) int

C function: glutCreateWindow

func GlutDestroyMenu

func GlutDestroyMenu(menu int)

C function: glutDestroyMenu

func GlutDestroyWindow

func GlutDestroyWindow(win int)

C function: glutDestroyWindow

func GlutDetachMenu

func GlutDetachMenu(button int)

C function: glutDetachMenu

func GlutDeviceGet

func GlutDeviceGet(type_ uint32) int

C function: glutDeviceGet

func GlutDialsFunc

func GlutDialsFunc(func_ unsafe.Pointer)

C function: glutDialsFunc

func GlutDisplayFunc

func GlutDisplayFunc(func_ unsafe.Pointer)

C function: glutDisplayFunc

func GlutEnterGameMode

func GlutEnterGameMode() int

C function: glutEnterGameMode

func GlutEntryFunc

func GlutEntryFunc(func_ unsafe.Pointer)

C function: glutEntryFunc

func GlutEstablishOverlay

func GlutEstablishOverlay()

C function: glutEstablishOverlay

func GlutExtensionSupported

func GlutExtensionSupported(name string) int

C function: glutExtensionSupported

func GlutForceJoystickFunc

func GlutForceJoystickFunc()

C function: glutForceJoystickFunc

func GlutFullScreen

func GlutFullScreen()

C function: glutFullScreen

func GlutGameModeGet

func GlutGameModeGet(mode uint32) int

C function: glutGameModeGet

func GlutGameModeString

func GlutGameModeString(string_ string)

C function: glutGameModeString

func GlutGet

func GlutGet(type_ uint32) int

C function: glutGet

func GlutGetColor

func GlutGetColor(ndx int, component int) float32

C function: glutGetColor

func GlutGetMenu

func GlutGetMenu() int

C function: glutGetMenu

func GlutGetModifiers

func GlutGetModifiers() int

C function: glutGetModifiers

func GlutGetProcAddress

func GlutGetProcAddress(procName string) unsafe.Pointer

C function: glutGetProcAddress

func GlutGetWindow

func GlutGetWindow() int

C function: glutGetWindow

func GlutHideOverlay

func GlutHideOverlay()

C function: glutHideOverlay

func GlutHideWindow

func GlutHideWindow()

C function: glutHideWindow

func GlutIconifyWindow

func GlutIconifyWindow()

C function: glutIconifyWindow

func GlutIdleFunc

func GlutIdleFunc(func_ unsafe.Pointer)

C function: glutIdleFunc

func GlutIgnoreKeyRepeat

func GlutIgnoreKeyRepeat(ignore int)

C function: glutIgnoreKeyRepeat

func GlutInit

func GlutInit(argcp *int32, argv string)

C function: glutInit

func GlutInitDisplayMode

func GlutInitDisplayMode(mode uint)

C function: glutInitDisplayMode

func GlutInitDisplayString

func GlutInitDisplayString(string_ string)

C function: glutInitDisplayString

func GlutInitWindowPosition

func GlutInitWindowPosition(x int, y int)

C function: glutInitWindowPosition

func GlutInitWindowSize

func GlutInitWindowSize(width int, height int)

C function: glutInitWindowSize

func GlutJoystickFunc

func GlutJoystickFunc(func_ unsafe.Pointer, pollInterval int)

C function: glutJoystickFunc

func GlutKeyboardFunc

func GlutKeyboardFunc(func_ unsafe.Pointer)

C function: glutKeyboardFunc

func GlutKeyboardUpFunc

func GlutKeyboardUpFunc(func_ unsafe.Pointer)

C function: glutKeyboardUpFunc

func GlutLayerGet

func GlutLayerGet(type_ uint32) int

C function: glutLayerGet

func GlutLeaveGameMode

func GlutLeaveGameMode()

C function: glutLeaveGameMode

func GlutMainLoop

func GlutMainLoop()

C function: glutMainLoop

func GlutMenuStateFunc

func GlutMenuStateFunc(func_ unsafe.Pointer)

C function: glutMenuStateFunc

func GlutMenuStatusFunc

func GlutMenuStatusFunc(func_ unsafe.Pointer)

C function: glutMenuStatusFunc

func GlutMotionFunc

func GlutMotionFunc(func_ unsafe.Pointer)

C function: glutMotionFunc

func GlutMouseFunc

func GlutMouseFunc(func_ unsafe.Pointer)

C function: glutMouseFunc

func GlutOverlayDisplayFunc

func GlutOverlayDisplayFunc(func_ unsafe.Pointer)

C function: glutOverlayDisplayFunc

func GlutPassiveMotionFunc

func GlutPassiveMotionFunc(func_ unsafe.Pointer)

C function: glutPassiveMotionFunc

func GlutPopWindow

func GlutPopWindow()

C function: glutPopWindow

func GlutPositionWindow

func GlutPositionWindow(x int, y int)

C function: glutPositionWindow

func GlutPostOverlayRedisplay

func GlutPostOverlayRedisplay()

C function: glutPostOverlayRedisplay

func GlutPostRedisplay

func GlutPostRedisplay()

C function: glutPostRedisplay

func GlutPostWindowOverlayRedisplay

func GlutPostWindowOverlayRedisplay(win int)

C function: glutPostWindowOverlayRedisplay

func GlutPostWindowRedisplay

func GlutPostWindowRedisplay(win int)

C function: glutPostWindowRedisplay

func GlutPushWindow

func GlutPushWindow()

C function: glutPushWindow

func GlutRemoveMenuItem

func GlutRemoveMenuItem(item int)

C function: glutRemoveMenuItem

func GlutRemoveOverlay

func GlutRemoveOverlay()

C function: glutRemoveOverlay

func GlutReportErrors

func GlutReportErrors()

C function: glutReportErrors

func GlutReshapeFunc

func GlutReshapeFunc(func_ unsafe.Pointer)

C function: glutReshapeFunc

func GlutReshapeWindow

func GlutReshapeWindow(width int, height int)

C function: glutReshapeWindow

func GlutSetColor

func GlutSetColor(arg int, red float32, green float32, blue float32)

C function: glutSetColor

func GlutSetCursor

func GlutSetCursor(cursor int)

C function: glutSetCursor

func GlutSetIconTitle

func GlutSetIconTitle(title string)

C function: glutSetIconTitle

func GlutSetKeyRepeat

func GlutSetKeyRepeat(repeatMode int)

C function: glutSetKeyRepeat

func GlutSetMenu

func GlutSetMenu(menu int)

C function: glutSetMenu

func GlutSetWindow

func GlutSetWindow(win int)

C function: glutSetWindow

func GlutSetWindowTitle

func GlutSetWindowTitle(title string)

C function: glutSetWindowTitle

func GlutSetupVideoResizing

func GlutSetupVideoResizing()

C function: glutSetupVideoResizing

func GlutShowOverlay

func GlutShowOverlay()

C function: glutShowOverlay

func GlutShowWindow

func GlutShowWindow()

C function: glutShowWindow

func GlutSolidCone

func GlutSolidCone(base float64, height float64, slices int32, stacks int32)

C function: glutSolidCone

func GlutSolidCube

func GlutSolidCube(size float64)

C function: glutSolidCube

func GlutSolidDodecahedron

func GlutSolidDodecahedron()

C function: glutSolidDodecahedron

func GlutSolidIcosahedron

func GlutSolidIcosahedron()

C function: glutSolidIcosahedron

func GlutSolidOctahedron

func GlutSolidOctahedron()

C function: glutSolidOctahedron

func GlutSolidSphere

func GlutSolidSphere(radius float64, slices int32, stacks int32)

C function: glutSolidSphere

func GlutSolidTeapot

func GlutSolidTeapot(size float64)

C function: glutSolidTeapot

func GlutSolidTetrahedron

func GlutSolidTetrahedron()

C function: glutSolidTetrahedron

func GlutSolidTorus

func GlutSolidTorus(innerRadius float64, outerRadius float64, sides int32, rings int32)

C function: glutSolidTorus

func GlutSpaceballButtonFunc

func GlutSpaceballButtonFunc(func_ unsafe.Pointer)

C function: glutSpaceballButtonFunc

func GlutSpaceballMotionFunc

func GlutSpaceballMotionFunc(func_ unsafe.Pointer)

C function: glutSpaceballMotionFunc

func GlutSpaceballRotateFunc

func GlutSpaceballRotateFunc(func_ unsafe.Pointer)

C function: glutSpaceballRotateFunc

func GlutSpecialFunc

func GlutSpecialFunc(func_ unsafe.Pointer)

C function: glutSpecialFunc

func GlutSpecialUpFunc

func GlutSpecialUpFunc(func_ unsafe.Pointer)

C function: glutSpecialUpFunc

func GlutStopVideoResizing

func GlutStopVideoResizing()

C function: glutStopVideoResizing

func GlutStrokeCharacter

func GlutStrokeCharacter(font unsafe.Pointer, character int)

C function: glutStrokeCharacter

func GlutStrokeLength

func GlutStrokeLength(font unsafe.Pointer, string_ *uint8) int

C function: glutStrokeLength

func GlutStrokeMonoRoman

func GlutStrokeMonoRoman() uintptr

func GlutStrokeRoman

func GlutStrokeRoman() uintptr

func GlutStrokeWidth

func GlutStrokeWidth(font unsafe.Pointer, character int) int

C function: glutStrokeWidth

func GlutSurfaceTexture

func GlutSurfaceTexture(target uint32, internalformat uint32, surfacewin int)

C function: glutSurfaceTexture

func GlutSwapBuffers

func GlutSwapBuffers()

C function: glutSwapBuffers

func GlutTabletButtonFunc

func GlutTabletButtonFunc(func_ unsafe.Pointer)

C function: glutTabletButtonFunc

func GlutTabletMotionFunc

func GlutTabletMotionFunc(func_ unsafe.Pointer)

C function: glutTabletMotionFunc

func GlutTimerFunc

func GlutTimerFunc(millis uint, func_ unsafe.Pointer, value int)

C function: glutTimerFunc

func GlutUseLayer

func GlutUseLayer(layer uint32)

C function: glutUseLayer

func GlutVideoPan

func GlutVideoPan(x int, y int, width int, height int)

C function: glutVideoPan

func GlutVideoResize

func GlutVideoResize(x int, y int, width int, height int)

C function: glutVideoResize

func GlutVideoResizeGet

func GlutVideoResizeGet(param uint32) int

C function: glutVideoResizeGet

func GlutVisibilityFunc

func GlutVisibilityFunc(func_ unsafe.Pointer)

C function: glutVisibilityFunc

func GlutWMCloseFunc

func GlutWMCloseFunc(func_ unsafe.Pointer)

C function: glutWMCloseFunc

func GlutWarpPointer

func GlutWarpPointer(x int, y int)

C function: glutWarpPointer

func GlutWindowStatusFunc

func GlutWindowStatusFunc(func_ unsafe.Pointer)

C function: glutWindowStatusFunc

func GlutWireCone

func GlutWireCone(base float64, height float64, slices int32, stacks int32)

C function: glutWireCone

func GlutWireCube

func GlutWireCube(size float64)

C function: glutWireCube

func GlutWireDodecahedron

func GlutWireDodecahedron()

C function: glutWireDodecahedron

func GlutWireIcosahedron

func GlutWireIcosahedron()

C function: glutWireIcosahedron

func GlutWireOctahedron

func GlutWireOctahedron()

C function: glutWireOctahedron

func GlutWireSphere

func GlutWireSphere(radius float64, slices int32, stacks int32)

C function: glutWireSphere

func GlutWireTeapot

func GlutWireTeapot(size float64)

C function: glutWireTeapot

func GlutWireTetrahedron

func GlutWireTetrahedron()

C function: glutWireTetrahedron

func GlutWireTorus

func GlutWireTorus(innerRadius float64, outerRadius float64, sides int32, rings int32)

C function: glutWireTorus

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL