glut

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package glut provides a fluent Go API over the macOS GLUT framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMenuEntry added in v0.17.0

func AddMenuEntry(label string, value int)

AddMenuEntry calls the GLUT framework function glutAddMenuEntry.

func AddSubMenu added in v0.17.0

func AddSubMenu(label string, submenu int)

AddSubMenu calls the GLUT framework function glutAddSubMenu.

func AttachMenu added in v0.17.0

func AttachMenu(button int)

AttachMenu calls the GLUT framework function glutAttachMenu.

func BitmapCharacter added in v0.17.0

func BitmapCharacter(font unsafe.Pointer, character int)

BitmapCharacter calls the GLUT framework function glutBitmapCharacter.

func BitmapLength added in v0.17.0

func BitmapLength(font unsafe.Pointer, str unsafe.Pointer) int

BitmapLength calls the GLUT framework function glutBitmapLength.

func BitmapWidth added in v0.17.0

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

BitmapWidth calls the GLUT framework function glutBitmapWidth.

func ButtonBoxFunc added in v0.17.0

func ButtonBoxFunc(func_ unsafe.Pointer)

ButtonBoxFunc calls the GLUT framework function glutButtonBoxFunc.

func ChangeToMenuEntry added in v0.17.0

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

ChangeToMenuEntry calls the GLUT framework function glutChangeToMenuEntry.

func ChangeToSubMenu added in v0.17.0

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

ChangeToSubMenu calls the GLUT framework function glutChangeToSubMenu.

func CheckLoop added in v0.17.0

func CheckLoop()

CheckLoop calls the GLUT framework function glutCheckLoop.

func CopyColormap added in v0.17.0

func CopyColormap(win int)

CopyColormap calls the GLUT framework function glutCopyColormap.

func CreateMenu added in v0.17.0

func CreateMenu(arg unsafe.Pointer) int

CreateMenu calls the GLUT framework function glutCreateMenu.

func CreateSubWindow added in v0.17.0

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

CreateSubWindow calls the GLUT framework function glutCreateSubWindow.

func CreateWindow added in v0.17.0

func CreateWindow(title string) int

CreateWindow calls the GLUT framework function glutCreateWindow.

func DestroyMenu added in v0.17.0

func DestroyMenu(menu int)

DestroyMenu calls the GLUT framework function glutDestroyMenu.

func DestroyWindow added in v0.17.0

func DestroyWindow(win int)

DestroyWindow calls the GLUT framework function glutDestroyWindow.

func DetachMenu added in v0.17.0

func DetachMenu(button int)

DetachMenu calls the GLUT framework function glutDetachMenu.

func DeviceGet added in v0.17.0

func DeviceGet(type_ uint32) int

DeviceGet calls the GLUT framework function glutDeviceGet.

func DialsFunc added in v0.17.0

func DialsFunc(func_ unsafe.Pointer)

DialsFunc calls the GLUT framework function glutDialsFunc.

func DisplayFunc added in v0.17.0

func DisplayFunc(func_ unsafe.Pointer)

DisplayFunc calls the GLUT framework function glutDisplayFunc.

func EnterGameMode added in v0.17.0

func EnterGameMode() int

EnterGameMode calls the GLUT framework function glutEnterGameMode.

func EntryFunc added in v0.17.0

func EntryFunc(func_ unsafe.Pointer)

EntryFunc calls the GLUT framework function glutEntryFunc.

func EstablishOverlay added in v0.17.0

func EstablishOverlay()

EstablishOverlay calls the GLUT framework function glutEstablishOverlay.

func ExtensionSupported added in v0.17.0

func ExtensionSupported(name string) int

ExtensionSupported calls the GLUT framework function glutExtensionSupported.

func ForceJoystickFunc added in v0.17.0

func ForceJoystickFunc()

ForceJoystickFunc calls the GLUT framework function glutForceJoystickFunc.

func FullScreen added in v0.17.0

func FullScreen()

FullScreen calls the GLUT framework function glutFullScreen.

func GameModeGet added in v0.17.0

func GameModeGet(mode uint32) int

GameModeGet calls the GLUT framework function glutGameModeGet.

func GameModeString added in v0.17.0

func GameModeString(str string)

GameModeString calls the GLUT framework function glutGameModeString.

func Get added in v0.17.0

func Get(type_ uint32) int

Get calls the GLUT framework function glutGet.

func GetColor added in v0.17.0

func GetColor(ndx int, component int) float32

GetColor calls the GLUT framework function glutGetColor.

func GetMenu added in v0.17.0

func GetMenu() int

GetMenu calls the GLUT framework function glutGetMenu.

func GetModifiers added in v0.17.0

func GetModifiers() int

GetModifiers calls the GLUT framework function glutGetModifiers.

func GetProcAddress added in v0.17.0

func GetProcAddress(procName string) unsafe.Pointer

GetProcAddress calls the GLUT framework function glutGetProcAddress.

func GetWindow added in v0.17.0

func GetWindow() int

GetWindow calls the GLUT framework function glutGetWindow.

func GlutBitmap8By13

func GlutBitmap8By13() uintptr

GlutBitmap8By13 returns the address of the symbol glutBitmap8By13.

func GlutBitmap9By15

func GlutBitmap9By15() uintptr

GlutBitmap9By15 returns the address of the symbol glutBitmap9By15.

func GlutBitmapHelvetica10

func GlutBitmapHelvetica10() uintptr

GlutBitmapHelvetica10 returns the address of the symbol glutBitmapHelvetica10.

func GlutBitmapHelvetica12

func GlutBitmapHelvetica12() uintptr

GlutBitmapHelvetica12 returns the address of the symbol glutBitmapHelvetica12.

func GlutBitmapHelvetica18

func GlutBitmapHelvetica18() uintptr

GlutBitmapHelvetica18 returns the address of the symbol glutBitmapHelvetica18.

func GlutBitmapTimesRoman10

func GlutBitmapTimesRoman10() uintptr

GlutBitmapTimesRoman10 returns the address of the symbol glutBitmapTimesRoman10.

func GlutBitmapTimesRoman24

func GlutBitmapTimesRoman24() uintptr

GlutBitmapTimesRoman24 returns the address of the symbol glutBitmapTimesRoman24.

func GlutStrokeMonoRoman

func GlutStrokeMonoRoman() uintptr

GlutStrokeMonoRoman returns the address of the symbol glutStrokeMonoRoman.

func GlutStrokeRoman

func GlutStrokeRoman() uintptr

GlutStrokeRoman returns the address of the symbol glutStrokeRoman.

func HideOverlay added in v0.17.0

func HideOverlay()

HideOverlay calls the GLUT framework function glutHideOverlay.

func HideWindow added in v0.17.0

func HideWindow()

HideWindow calls the GLUT framework function glutHideWindow.

func IconifyWindow added in v0.17.0

func IconifyWindow()

IconifyWindow calls the GLUT framework function glutIconifyWindow.

func IdleFunc added in v0.17.0

func IdleFunc(func_ unsafe.Pointer)

IdleFunc calls the GLUT framework function glutIdleFunc.

func IgnoreKeyRepeat added in v0.17.0

func IgnoreKeyRepeat(ignore int)

IgnoreKeyRepeat calls the GLUT framework function glutIgnoreKeyRepeat.

func Init added in v0.17.0

func Init(argv string) (argcp int32)

Init calls the GLUT framework function glutInit.

func InitDisplayMode added in v0.17.0

func InitDisplayMode(mode int)

InitDisplayMode calls the GLUT framework function glutInitDisplayMode.

func InitDisplayString added in v0.17.0

func InitDisplayString(str string)

InitDisplayString calls the GLUT framework function glutInitDisplayString.

func InitWindowPosition added in v0.17.0

func InitWindowPosition(x int, y int)

InitWindowPosition calls the GLUT framework function glutInitWindowPosition.

func InitWindowSize added in v0.17.0

func InitWindowSize(width int, height int)

InitWindowSize calls the GLUT framework function glutInitWindowSize.

func JoystickFunc added in v0.17.0

func JoystickFunc(func_ unsafe.Pointer, pollInterval int)

JoystickFunc calls the GLUT framework function glutJoystickFunc.

func KeyboardFunc added in v0.17.0

func KeyboardFunc(func_ unsafe.Pointer)

KeyboardFunc calls the GLUT framework function glutKeyboardFunc.

func KeyboardUpFunc added in v0.17.0

func KeyboardUpFunc(func_ unsafe.Pointer)

KeyboardUpFunc calls the GLUT framework function glutKeyboardUpFunc.

func LayerGet added in v0.17.0

func LayerGet(type_ uint32) int

LayerGet calls the GLUT framework function glutLayerGet.

func LeaveGameMode added in v0.17.0

func LeaveGameMode()

LeaveGameMode calls the GLUT framework function glutLeaveGameMode.

func MainLoop added in v0.17.0

func MainLoop()

MainLoop calls the GLUT framework function glutMainLoop.

func MenuStateFunc(func_ unsafe.Pointer)

MenuStateFunc calls the GLUT framework function glutMenuStateFunc.

func MenuStatusFunc(func_ unsafe.Pointer)

MenuStatusFunc calls the GLUT framework function glutMenuStatusFunc.

func MotionFunc added in v0.17.0

func MotionFunc(func_ unsafe.Pointer)

MotionFunc calls the GLUT framework function glutMotionFunc.

func MouseFunc added in v0.17.0

func MouseFunc(func_ unsafe.Pointer)

MouseFunc calls the GLUT framework function glutMouseFunc.

func OverlayDisplayFunc added in v0.17.0

func OverlayDisplayFunc(func_ unsafe.Pointer)

OverlayDisplayFunc calls the GLUT framework function glutOverlayDisplayFunc.

func PassiveMotionFunc added in v0.17.0

func PassiveMotionFunc(func_ unsafe.Pointer)

PassiveMotionFunc calls the GLUT framework function glutPassiveMotionFunc.

func PopWindow added in v0.17.0

func PopWindow()

PopWindow calls the GLUT framework function glutPopWindow.

func PositionWindow added in v0.17.0

func PositionWindow(x int, y int)

PositionWindow calls the GLUT framework function glutPositionWindow.

func PostOverlayRedisplay added in v0.17.0

func PostOverlayRedisplay()

PostOverlayRedisplay calls the GLUT framework function glutPostOverlayRedisplay.

func PostRedisplay added in v0.17.0

func PostRedisplay()

PostRedisplay calls the GLUT framework function glutPostRedisplay.

func PostWindowOverlayRedisplay added in v0.17.0

func PostWindowOverlayRedisplay(win int)

PostWindowOverlayRedisplay calls the GLUT framework function glutPostWindowOverlayRedisplay.

func PostWindowRedisplay added in v0.17.0

func PostWindowRedisplay(win int)

PostWindowRedisplay calls the GLUT framework function glutPostWindowRedisplay.

func PushWindow added in v0.17.0

func PushWindow()

PushWindow calls the GLUT framework function glutPushWindow.

func RemoveMenuItem added in v0.17.0

func RemoveMenuItem(item int)

RemoveMenuItem calls the GLUT framework function glutRemoveMenuItem.

func RemoveOverlay added in v0.17.0

func RemoveOverlay()

RemoveOverlay calls the GLUT framework function glutRemoveOverlay.

func ReportErrors added in v0.17.0

func ReportErrors()

ReportErrors calls the GLUT framework function glutReportErrors.

func ReshapeFunc added in v0.17.0

func ReshapeFunc(func_ unsafe.Pointer)

ReshapeFunc calls the GLUT framework function glutReshapeFunc.

func ReshapeWindow added in v0.17.0

func ReshapeWindow(width int, height int)

ReshapeWindow calls the GLUT framework function glutReshapeWindow.

func SetColor added in v0.17.0

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

SetColor calls the GLUT framework function glutSetColor.

func SetCursor added in v0.17.0

func SetCursor(cursor int)

SetCursor calls the GLUT framework function glutSetCursor.

func SetIconTitle added in v0.17.0

func SetIconTitle(title string)

SetIconTitle calls the GLUT framework function glutSetIconTitle.

func SetKeyRepeat added in v0.17.0

func SetKeyRepeat(repeatMode int)

SetKeyRepeat calls the GLUT framework function glutSetKeyRepeat.

func SetMenu added in v0.17.0

func SetMenu(menu int)

SetMenu calls the GLUT framework function glutSetMenu.

func SetWindow added in v0.17.0

func SetWindow(win int)

SetWindow calls the GLUT framework function glutSetWindow.

func SetWindowTitle added in v0.17.0

func SetWindowTitle(title string)

SetWindowTitle calls the GLUT framework function glutSetWindowTitle.

func SetupVideoResizing added in v0.17.0

func SetupVideoResizing()

SetupVideoResizing calls the GLUT framework function glutSetupVideoResizing.

func ShowOverlay added in v0.17.0

func ShowOverlay()

ShowOverlay calls the GLUT framework function glutShowOverlay.

func ShowWindow added in v0.17.0

func ShowWindow()

ShowWindow calls the GLUT framework function glutShowWindow.

func SolidCone added in v0.17.0

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

SolidCone calls the GLUT framework function glutSolidCone.

func SolidCube added in v0.17.0

func SolidCube(size float64)

SolidCube calls the GLUT framework function glutSolidCube.

func SolidDodecahedron added in v0.17.0

func SolidDodecahedron()

SolidDodecahedron calls the GLUT framework function glutSolidDodecahedron.

func SolidIcosahedron added in v0.17.0

func SolidIcosahedron()

SolidIcosahedron calls the GLUT framework function glutSolidIcosahedron.

func SolidOctahedron added in v0.17.0

func SolidOctahedron()

SolidOctahedron calls the GLUT framework function glutSolidOctahedron.

func SolidSphere added in v0.17.0

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

SolidSphere calls the GLUT framework function glutSolidSphere.

func SolidTeapot added in v0.17.0

func SolidTeapot(size float64)

SolidTeapot calls the GLUT framework function glutSolidTeapot.

func SolidTetrahedron added in v0.17.0

func SolidTetrahedron()

SolidTetrahedron calls the GLUT framework function glutSolidTetrahedron.

func SolidTorus added in v0.17.0

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

SolidTorus calls the GLUT framework function glutSolidTorus.

func SpaceballButtonFunc added in v0.17.0

func SpaceballButtonFunc(func_ unsafe.Pointer)

SpaceballButtonFunc calls the GLUT framework function glutSpaceballButtonFunc.

func SpaceballMotionFunc added in v0.17.0

func SpaceballMotionFunc(func_ unsafe.Pointer)

SpaceballMotionFunc calls the GLUT framework function glutSpaceballMotionFunc.

func SpaceballRotateFunc added in v0.17.0

func SpaceballRotateFunc(func_ unsafe.Pointer)

SpaceballRotateFunc calls the GLUT framework function glutSpaceballRotateFunc.

func SpecialFunc added in v0.17.0

func SpecialFunc(func_ unsafe.Pointer)

SpecialFunc calls the GLUT framework function glutSpecialFunc.

func SpecialUpFunc added in v0.17.0

func SpecialUpFunc(func_ unsafe.Pointer)

SpecialUpFunc calls the GLUT framework function glutSpecialUpFunc.

func StopVideoResizing added in v0.17.0

func StopVideoResizing()

StopVideoResizing calls the GLUT framework function glutStopVideoResizing.

func StrokeCharacter added in v0.17.0

func StrokeCharacter(font unsafe.Pointer, character int)

StrokeCharacter calls the GLUT framework function glutStrokeCharacter.

func StrokeLength added in v0.17.0

func StrokeLength(font unsafe.Pointer, str unsafe.Pointer) int

StrokeLength calls the GLUT framework function glutStrokeLength.

func StrokeWidth added in v0.17.0

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

StrokeWidth calls the GLUT framework function glutStrokeWidth.

func SurfaceTexture added in v0.17.0

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

SurfaceTexture calls the GLUT framework function glutSurfaceTexture.

func SwapBuffers added in v0.17.0

func SwapBuffers()

SwapBuffers calls the GLUT framework function glutSwapBuffers.

func TabletButtonFunc added in v0.17.0

func TabletButtonFunc(func_ unsafe.Pointer)

TabletButtonFunc calls the GLUT framework function glutTabletButtonFunc.

func TabletMotionFunc added in v0.17.0

func TabletMotionFunc(func_ unsafe.Pointer)

TabletMotionFunc calls the GLUT framework function glutTabletMotionFunc.

func TimerFunc added in v0.17.0

func TimerFunc(millis int, func_ unsafe.Pointer, value int)

TimerFunc calls the GLUT framework function glutTimerFunc.

func UseLayer added in v0.17.0

func UseLayer(layer uint32)

UseLayer calls the GLUT framework function glutUseLayer.

func VideoPan added in v0.17.0

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

VideoPan calls the GLUT framework function glutVideoPan.

func VideoResize added in v0.17.0

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

VideoResize calls the GLUT framework function glutVideoResize.

func VideoResizeGet added in v0.17.0

func VideoResizeGet(param uint32) int

VideoResizeGet calls the GLUT framework function glutVideoResizeGet.

func VisibilityFunc added in v0.17.0

func VisibilityFunc(func_ unsafe.Pointer)

VisibilityFunc calls the GLUT framework function glutVisibilityFunc.

func WMCloseFunc added in v0.17.0

func WMCloseFunc(func_ unsafe.Pointer)

WMCloseFunc calls the GLUT framework function glutWMCloseFunc.

func WarpPointer added in v0.17.0

func WarpPointer(x int, y int)

WarpPointer calls the GLUT framework function glutWarpPointer.

func WindowStatusFunc added in v0.17.0

func WindowStatusFunc(func_ unsafe.Pointer)

WindowStatusFunc calls the GLUT framework function glutWindowStatusFunc.

func WireCone added in v0.17.0

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

WireCone calls the GLUT framework function glutWireCone.

func WireCube added in v0.17.0

func WireCube(size float64)

WireCube calls the GLUT framework function glutWireCube.

func WireDodecahedron added in v0.17.0

func WireDodecahedron()

WireDodecahedron calls the GLUT framework function glutWireDodecahedron.

func WireIcosahedron added in v0.17.0

func WireIcosahedron()

WireIcosahedron calls the GLUT framework function glutWireIcosahedron.

func WireOctahedron added in v0.17.0

func WireOctahedron()

WireOctahedron calls the GLUT framework function glutWireOctahedron.

func WireSphere added in v0.17.0

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

WireSphere calls the GLUT framework function glutWireSphere.

func WireTeapot added in v0.17.0

func WireTeapot(size float64)

WireTeapot calls the GLUT framework function glutWireTeapot.

func WireTetrahedron added in v0.17.0

func WireTetrahedron()

WireTetrahedron calls the GLUT framework function glutWireTetrahedron.

func WireTorus added in v0.17.0

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

WireTorus calls the GLUT framework function glutWireTorus.

Types

This section is empty.

Jump to

Keyboard shortcuts

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