Documentation ¶
Index ¶
- Constants
- func AddMenuEntry(name string, value int)
- func AddSubMenu(name string, menuId int)
- func AttachMenu(button int)
- func BitmapCharacter(font int, character rune)
- func BitmapHeight(font unsafe.Pointer) int
- func BitmapLength(font int, s string) int
- func BitmapString(font unsafe.Pointer, str string)
- func BitmapWidth(font int, character rune) int
- func ButtonBoxFunc(buttonBox func(button, state int))
- func ChangeToMenuEntry(entry int, name string, value int)
- func ChangeToSubMenu(entry int, name string, menuId int)
- func CloseFunc(closeFunc func())
- func CopyColormap(windowId int)
- func CreateMenu(menu func(value int)) (menuId int)
- func CreateSubWindow(windowId, x, y, width, height int) (subWindowId int)
- func CreateWindow(title string) (windowId int)
- func DestroyMenu(menuId int)
- func DestroyWindow(windowId int)
- func DetachMenu(button int)
- func DeviceGet(type_ int) int
- func DialsFunc(dials func(dial, value int))
- func DisplayFunc(display func())
- func EnterGameMode() int
- func EntryFunc(entry func(state int))
- func EstablishOverlay()
- func Exit()
- func ExtensionSupported(extension string) (supported bool)
- func ForceJoystickFunc()
- func FullScreen()
- func FullScreenToggle()
- func GameModeGet(mode int) int
- func GameModeString(s string)
- func Get(state int) int
- func GetColor(cell, component int) float32
- func GetMenu() (menuId int)
- func GetMenuData() interface{}
- func GetModeValues(mode int) []int
- func GetModifiers() int
- func GetProcAddress(procName string) unsafe.Pointer
- func GetWindow() (windowId int)
- func GetWindowData() interface{}
- func HideOverlay()
- func HideWindow()
- func IconifyWindow()
- func IdleFunc(idle func())
- func IgnoreKeyRepeat(ignore int)
- func Init()
- func InitContextFlags(flags int)
- func InitContextProfile(profile int)
- func InitContextVersion(majorVersion, minorVersion int)
- func InitDisplayMode(mode uint)
- func InitErrorFunc(errorFunc func(msg string))
- func InitWarningFunc(warningFunc func(msg string))
- func InitWindowPosition(width, height int)
- func InitWindowSize(width, height int)
- func JoystickFunc(joystick func(buttonMask uint, x, y, z int), pollInterval int)
- func KeyboardFunc(keyboard func(key uint8, x, y int))
- func KeyboardUpFunc(keyboardUp func(key uint8, x, y int))
- func LayerGet(type_ int) int
- func LeaveFullScreen()
- func LeaveGameMode()
- func LeaveMainLoop()
- func MainLoop()
- func MainLoopEvent()
- func MenuDestroyFunc(menuDestroyFunc func())
- func MenuStateFunc(menuState func(status int))
- func MenuStatusFunc(menuStatus func(status, x, y int))
- func MotionFunc(motion func(x, y int))
- func MouseFunc(mouse func(button, state, x, y int))
- func MouseWheelFunc(mouseWheelFunc func(wheel, direction, x, y int))
- func MultiButtonFunc(multiButton func(id, x, y, button, status int))
- func MultiEntryFunc(multiEntry func(id, status int))
- func MultiMotionFunc(multiMotion func(id, x, y int))
- func MultiPassiveFunc(multiPassive func(id, x, y int))
- func OverlayDisplayFunc(overlayDisplay func())
- func PassiveMotionFunc(passiveMotion func(x, y int))
- func PopWindow()
- func PositionWindow(x, y int)
- func PostOverlayRedisplay()
- func PostRedisplay()
- func PostWindowOverlayRedisplay(windowId int)
- func PostWindowRedisplay(windowId int)
- func PushWindow()
- func RemoveMenuItem(entry int, name string, menuId int)
- func RemoveOverlay()
- func ReportErrors()
- func ReshapeFunc(reshape func(width, height int))
- func ReshapeWindow(width, height int)
- func SetColor(cell int, red, green, blue float32)
- func SetCursor(cursor int)
- func SetIconTitle(title string)
- func SetKeyRepeat(repeatMode int)
- func SetMenu(menuId int)
- func SetMenuData(menuData interface{})
- func SetOption(option_flag, value int)
- func SetWindow(windowId int)
- func SetWindowData(data interface{})
- func SetWindowTitle(title string)
- func SetupVideoResizing()
- func ShowOverlay()
- func ShowWindow()
- func SolidCone(base, height float64, slices, stacks int)
- func SolidCube(size float64)
- func SolidCylinder(radius, height float64, slices, stacks int)
- func SolidDodecahedron()
- func SolidIcosahedron()
- func SolidOctahedron()
- func SolidRhombicDodecahedron()
- func SolidSierpinskiSponge(num_levels int, offset [3]float64, scale float64)
- func SolidSphere(radius float64, slices, stacks int)
- func SolidTeapot(size float64)
- func SolidTetrahedron()
- func SolidTorus(innerRadius, outerRadius float64, nsides, rings int)
- func SpaceballButtonFunc(spaceballButton func(button, state int))
- func SpaceballMotionFunc(spaceballMotion func(x, y, z int))
- func SpaceballRotateFunc(spaceballRotate func(x, y, z int))
- func SpecialFunc(special func(key, x, y int))
- func SpecialUpFunc(specialUp func(key, x, y int))
- func StopVideoResizing()
- func StrokeCharacter(font int, character rune)
- func StrokeHeight(font unsafe.Pointer) float32
- func StrokeLength(font int, s string) int
- func StrokeString(font unsafe.Pointer, str string)
- func StrokeWidth(font int, character rune) int
- func SwapBuffers()
- func TabletButtonFunc(tabletButton func(button, state, x, y int))
- func TabletMotionFunc(tabletMotion func(x, y int))
- func TimerFunc(msecs int, timer func(timerId int), timerId int)
- func UseLayer(layer int)
- func VideoPan(x, y, width, height int)
- func VideoResize(x, y, width, height int)
- func VideoResizeGet(param int) int
- func VisibilityFunc(visibility func(state int))
- func WMCloseFunc(wmCloseFunc func())
- func WarpPointer(x, y int)
- func WindowStatusFunc(windowStatus func(state int))
- func WireCone(base, height float64, slices, stacks int)
- func WireCube(size float64)
- func WireCylinder(radius, height float64, slices, stacks int)
- func WireDodecahedron()
- func WireIcosahedron()
- func WireOctahedron()
- func WireRhombicDodecahedron()
- func WireSierpinskiSponge(num_levels int, offset [3]float64, scale float64)
- func WireSphere(radius float64, slices, stacks int)
- func WireTeapot(size float64)
- func WireTetrahedron()
- func WireTorus(innerRadius, outerRadius float64, nsides, rings int)
Constants ¶
const ( ACTION_EXIT = C.GLUT_ACTION_EXIT ACTION_GLUTMAINLOOP_RETURNS = C.GLUT_ACTION_GLUTMAINLOOP_RETURNS ACTION_CONTINUE_EXECUTION = C.GLUT_ACTION_CONTINUE_EXECUTION )
window close behaviour; use it in SetOption(int, int) as value
const ( CREATE_NEW_CONTEXT = C.GLUT_CREATE_NEW_CONTEXT USE_CURRENT_CONTEXT = C.GLUT_USE_CURRENT_CONTEXT )
rendering context creation; use it in SetOption(int, int) as value
const ( FORCE_INDIRECT_CONTEXT = C.GLUT_FORCE_INDIRECT_CONTEXT ALLOW_DIRECT_CONTEXT = C.GLUT_ALLOW_DIRECT_CONTEXT TRY_DIRECT_CONTEXT = C.GLUT_TRY_DIRECT_CONTEXT FORCE_DIRECT_CONTEXT = C.GLUT_FORCE_DIRECT_CONTEXT )
direct/indirect rendering context options (for Unix/X11); use it in SetOption(int, int) as value
const ( DEBUG = C.GLUT_DEBUG FORWARD_COMPATIBLE = C.GLUT_FORWARD_COMPATIBLE )
use it in InitContextFlags(int)
const ( CORE_PROFILE = C.GLUT_CORE_PROFILE COMPATIBILITY_PROFILE = C.GLUT_COMPATIBILITY_PROFILE )
use it in InitContextProfile(int)
const ( CAPTIONLESS = C.GLUT_CAPTIONLESS BORDERLESS = C.GLUT_BORDERLESS SRGB = C.GLUT_SRGB )
the display mode definitions
const ( RGB = C.GLUT_RGB RGBA = C.GLUT_RGBA INDEX = C.GLUT_INDEX SINGLE = C.GLUT_SINGLE DOUBLE = C.GLUT_DOUBLE ACCUM = C.GLUT_ACCUM ALPHA = C.GLUT_ALPHA DEPTH = C.GLUT_DEPTH STENCIL = C.GLUT_STENCIL MULTISAMPLE = C.GLUT_MULTISAMPLE STEREO = C.GLUT_STEREO LUMINANCE = C.GLUT_LUMINANCE AUX = C.GLUT_AUX AUX1 = C.GLUT_AUX1 AUX2 = C.GLUT_AUX2 AUX3 = C.GLUT_AUX3 AUX4 = C.GLUT_AUX4 )
display modes for InitDisplayMode
const ( LEFT_BUTTON = C.GLUT_LEFT_BUTTON MIDDLE_BUTTON = C.GLUT_MIDDLE_BUTTON RIGHT_BUTTON = C.GLUT_RIGHT_BUTTON DOWN = C.GLUT_DOWN UP = C.GLUT_UP )
mouse states
const ( KEY_F1 = C.GLUT_KEY_F1 KEY_F2 = C.GLUT_KEY_F2 KEY_F3 = C.GLUT_KEY_F3 KEY_F4 = C.GLUT_KEY_F4 KEY_F5 = C.GLUT_KEY_F5 KEY_F6 = C.GLUT_KEY_F6 KEY_F7 = C.GLUT_KEY_F7 KEY_F8 = C.GLUT_KEY_F8 KEY_F9 = C.GLUT_KEY_F9 KEY_F10 = C.GLUT_KEY_F10 KEY_F11 = C.GLUT_KEY_F11 KEY_F12 = C.GLUT_KEY_F12 KEY_LEFT = C.GLUT_KEY_LEFT KEY_UP = C.GLUT_KEY_UP KEY_RIGHT = C.GLUT_KEY_RIGHT KEY_DOWN = C.GLUT_KEY_DOWN KEY_PAGE_UP = C.GLUT_KEY_PAGE_UP KEY_PAGE_DOWN = C.GLUT_KEY_PAGE_DOWN KEY_HOME = C.GLUT_KEY_HOME KEY_END = C.GLUT_KEY_END KEY_INSERT = C.GLUT_KEY_INSERT KEY_NUM_LOCK = C.GLUT_KEY_NUM_LOCK KEY_BEGIN = C.GLUT_KEY_BEGIN KEY_DELETE = C.GLUT_KEY_DELETE KEY_SHIFT_L = C.GLUT_KEY_SHIFT_L KEY_SHIFT_R = C.GLUT_KEY_SHIFT_R KEY_CTRL_L = C.GLUT_KEY_CTRL_L KEY_CTRL_R = C.GLUT_KEY_CTRL_R KEY_ALT_L = C.GLUT_KEY_ALT_L KEY_ALT_R = C.GLUT_KEY_ALT_R )
special key codes
const ( LEFT = C.GLUT_LEFT ENTERED = C.GLUT_ENTERED )
entry/exit callback state
const ( MENU_NOT_IN_USE = C.GLUT_MENU_NOT_IN_USE MENU_IN_USE = C.GLUT_MENU_IN_USE NOT_VISIBLE = C.GLUT_NOT_VISIBLE VISIBLE = C.GLUT_VISIBLE HIDDEN = C.GLUT_HIDDEN FULLY_RETAINED = C.GLUT_FULLY_RETAINED PARTIALLY_RETAINED = C.GLUT_PARTIALLY_RETAINED FULLY_COVERED = C.GLUT_FULLY_COVERED )
window and menu status
const ( RED = C.GLUT_RED GREEN = C.GLUT_GREEN BLUE = C.GLUT_BLUE )
RGB color component specification for GetColor
const ( NORMAL = C.GLUT_NORMAL OVERLAY = C.GLUT_OVERLAY )
the UseLayer parameters
const ( STROKE_ROMAN = 0 STROKE_MONO_ROMAN = 1 BITMAP_9_BY_15 = 2 BITMAP_8_BY_13 = 3 BITMAP_TIMES_ROMAN_10 = 4 BITMAP_TIMES_ROMAN_24 = 5 BITMAP_HELVETICA_10 = 6 BITMAP_HELVETICA_12 = 7 BITMAP_HELVETICA_18 = 8 )
fonts
const ( WINDOW_X = C.GLUT_WINDOW_X WINDOW_Y = C.GLUT_WINDOW_Y WINDOW_WIDTH = C.GLUT_WINDOW_WIDTH WINDOW_HEIGHT = C.GLUT_WINDOW_HEIGHT WINDOW_BUFFER_SIZE = C.GLUT_WINDOW_BUFFER_SIZE WINDOW_STENCIL_SIZE = C.GLUT_WINDOW_STENCIL_SIZE WINDOW_DEPTH_SIZE = C.GLUT_WINDOW_DEPTH_SIZE WINDOW_RED_SIZE = C.GLUT_WINDOW_RED_SIZE WINDOW_GREEN_SIZE = C.GLUT_WINDOW_GREEN_SIZE WINDOW_BLUE_SIZE = C.GLUT_WINDOW_BLUE_SIZE WINDOW_ALPHA_SIZE = C.GLUT_WINDOW_ALPHA_SIZE WINDOW_ACCUM_RED_SIZE = C.GLUT_WINDOW_ACCUM_RED_SIZE WINDOW_ACCUM_GREEN_SIZE = C.GLUT_WINDOW_ACCUM_GREEN_SIZE WINDOW_ACCUM_BLUE_SIZE = C.GLUT_WINDOW_ACCUM_BLUE_SIZE WINDOW_ACCUM_ALPHA_SIZE = C.GLUT_WINDOW_ACCUM_ALPHA_SIZE WINDOW_DOUBLEBUFFER = C.GLUT_WINDOW_DOUBLEBUFFER WINDOW_RGBA = C.GLUT_WINDOW_RGBA WINDOW_PARENT = C.GLUT_WINDOW_PARENT WINDOW_NUM_CHILDREN = C.GLUT_WINDOW_NUM_CHILDREN WINDOW_COLORMAP_SIZE = C.GLUT_WINDOW_COLORMAP_SIZE WINDOW_NUM_SAMPLES = C.GLUT_WINDOW_NUM_SAMPLES WINDOW_STEREO = C.GLUT_WINDOW_STEREO WINDOW_CURSOR = C.GLUT_WINDOW_CURSOR SCREEN_WIDTH = C.GLUT_SCREEN_WIDTH SCREEN_HEIGHT = C.GLUT_SCREEN_HEIGHT SCREEN_WIDTH_MM = C.GLUT_SCREEN_WIDTH_MM SCREEN_HEIGHT_MM = C.GLUT_SCREEN_HEIGHT_MM MENU_NUM_ITEMS = C.GLUT_MENU_NUM_ITEMS DISPLAY_MODE_POSSIBLE = C.GLUT_DISPLAY_MODE_POSSIBLE INIT_WINDOW_X = C.GLUT_INIT_WINDOW_X INIT_WINDOW_Y = C.GLUT_INIT_WINDOW_Y INIT_WINDOW_WIDTH = C.GLUT_INIT_WINDOW_WIDTH INIT_WINDOW_HEIGHT = C.GLUT_INIT_WINDOW_HEIGHT INIT_DISPLAY_MODE = C.GLUT_INIT_DISPLAY_MODE ELAPSED_TIME = C.GLUT_ELAPSED_TIME // glut api version >= 4 or xlib implementation >= 13 WINDOW_FORMAT_ID = C.GLUT_WINDOW_FORMAT_ID INIT_STATE = C.GLUT_INIT_STATE ACTION_ON_WINDOW_CLOSE = C.GLUT_ACTION_ON_WINDOW_CLOSE WINDOW_BORDER_WIDTH = C.GLUT_WINDOW_BORDER_WIDTH WINDOW_BORDER_HEIGHT = C.GLUT_WINDOW_BORDER_HEIGHT WINDOW_HEADER_HEIGHT = C.GLUT_WINDOW_HEADER_HEIGHT VERSION = C.GLUT_VERSION RENDERING_CONTEXT = C.GLUT_RENDERING_CONTEXT DIRECT_RENDERING = C.GLUT_DIRECT_RENDERING FULL_SCREEN = C.GLUT_FULL_SCREEN SKIP_STALE_MOTION_EVENTS = C.GLUT_SKIP_STALE_MOTION_EVENTS INIT_MAJOR_VERSION = C.GLUT_INIT_MAJOR_VERSION INIT_MINOR_VERSION = C.GLUT_INIT_MINOR_VERSION INIT_FLAGS = C.GLUT_INIT_FLAGS INIT_PROFILE = C.GLUT_INIT_PROFILE )
the Get parameters
const ( HAS_KEYBOARD = C.GLUT_HAS_KEYBOARD HAS_MOUSE = C.GLUT_HAS_MOUSE HAS_SPACEBALL = C.GLUT_HAS_SPACEBALL HAS_DIAL_AND_BUTTON_BOX = C.GLUT_HAS_DIAL_AND_BUTTON_BOX HAS_TABLET = C.GLUT_HAS_TABLET NUM_MOUSE_BUTTONS = C.GLUT_NUM_MOUSE_BUTTONS NUM_SPACEBALL_BUTTONS = C.GLUT_NUM_SPACEBALL_BUTTONS NUM_BUTTON_BOX_BUTTONS = C.GLUT_NUM_BUTTON_BOX_BUTTONS NUM_DIALS = C.GLUT_NUM_DIALS NUM_TABLET_BUTTONS = C.GLUT_NUM_TABLET_BUTTONS DEVICE_IGNORE_KEY_REPEAT = C.GLUT_DEVICE_IGNORE_KEY_REPEAT DEVICE_KEY_REPEAT = C.GLUT_DEVICE_KEY_REPEAT HAS_JOYSTICK = C.GLUT_HAS_JOYSTICK OWNS_JOYSTICK = C.GLUT_OWNS_JOYSTICK JOYSTICK_BUTTONS = C.GLUT_JOYSTICK_BUTTONS JOYSTICK_AXES = C.GLUT_JOYSTICK_AXES JOYSTICK_POLL_RATE = C.GLUT_JOYSTICK_POLL_RATE )
the DeviceGet parameters
const ( OVERLAY_POSSIBLE = C.GLUT_OVERLAY_POSSIBLE LAYER_IN_USE = C.GLUT_LAYER_IN_USE HAS_OVERLAY = C.GLUT_HAS_OVERLAY TRANSPARENT_INDEX = C.GLUT_TRANSPARENT_INDEX NORMAL_DAMAGED = C.GLUT_NORMAL_DAMAGED OVERLAY_DAMAGED = C.GLUT_OVERLAY_DAMAGED )
the LayerGet parameters
const ( VIDEO_RESIZE_POSSIBLE = C.GLUT_VIDEO_RESIZE_POSSIBLE VIDEO_RESIZE_IN_USE = C.GLUT_VIDEO_RESIZE_IN_USE VIDEO_RESIZE_X_DELTA = C.GLUT_VIDEO_RESIZE_X_DELTA VIDEO_RESIZE_Y_DELTA = C.GLUT_VIDEO_RESIZE_Y_DELTA VIDEO_RESIZE_WIDTH_DELTA = C.GLUT_VIDEO_RESIZE_WIDTH_DELTA VIDEO_RESIZE_HEIGHT_DELTA = C.GLUT_VIDEO_RESIZE_HEIGHT_DELTA VIDEO_RESIZE_X = C.GLUT_VIDEO_RESIZE_X VIDEO_RESIZE_Y = C.GLUT_VIDEO_RESIZE_Y VIDEO_RESIZE_WIDTH = C.GLUT_VIDEO_RESIZE_WIDTH VIDEO_RESIZE_HEIGHT = C.GLUT_VIDEO_RESIZE_HEIGHT )
glutVideoResizeGet parameters glut api version >= 4 or xlib implementation >= 9
const ( ACTIVE_SHIFT = C.GLUT_ACTIVE_SHIFT ACTIVE_CTRL = C.GLUT_ACTIVE_CTRL ACTIVE_ALT = C.GLUT_ACTIVE_ALT )
the GetModifiers parameters
const ( CURSOR_RIGHT_ARROW = C.GLUT_CURSOR_RIGHT_ARROW CURSOR_LEFT_ARROW = C.GLUT_CURSOR_LEFT_ARROW CURSOR_INFO = C.GLUT_CURSOR_INFO CURSOR_DESTROY = C.GLUT_CURSOR_DESTROY CURSOR_HELP = C.GLUT_CURSOR_HELP CURSOR_CYCLE = C.GLUT_CURSOR_CYCLE CURSOR_SPRAY = C.GLUT_CURSOR_SPRAY CURSOR_WAIT = C.GLUT_CURSOR_WAIT CURSOR_TEXT = C.GLUT_CURSOR_TEXT CURSOR_CROSSHAIR = C.GLUT_CURSOR_CROSSHAIR CURSOR_UP_DOWN = C.GLUT_CURSOR_UP_DOWN CURSOR_LEFT_RIGHT = C.GLUT_CURSOR_LEFT_RIGHT CURSOR_TOP_SIDE = C.GLUT_CURSOR_TOP_SIDE CURSOR_BOTTOM_SIDE = C.GLUT_CURSOR_BOTTOM_SIDE CURSOR_LEFT_SIDE = C.GLUT_CURSOR_LEFT_SIDE CURSOR_RIGHT_SIDE = C.GLUT_CURSOR_RIGHT_SIDE CURSOR_TOP_LEFT_CORNER = C.GLUT_CURSOR_TOP_LEFT_CORNER CURSOR_TOP_RIGHT_CORNER = C.GLUT_CURSOR_TOP_RIGHT_CORNER CURSOR_BOTTOM_RIGHT_CORNER = C.GLUT_CURSOR_BOTTOM_RIGHT_CORNER CURSOR_BOTTOM_LEFT_CORNER = C.GLUT_CURSOR_BOTTOM_LEFT_CORNER CURSOR_INHERIT = C.GLUT_CURSOR_INHERIT CURSOR_NONE = C.GLUT_CURSOR_NONE CURSOR_FULL_CROSSHAIR = C.GLUT_CURSOR_FULL_CROSSHAIR )
the SetCursor parameters
const ( KEY_REPEAT_OFF = C.GLUT_KEY_REPEAT_OFF KEY_REPEAT_ON = C.GLUT_KEY_REPEAT_ON KEY_REPEAT_DEFAULT = C.GLUT_KEY_REPEAT_DEFAULT JOYSTICK_BUTTON_A = C.GLUT_JOYSTICK_BUTTON_A JOYSTICK_BUTTON_B = C.GLUT_JOYSTICK_BUTTON_B JOYSTICK_BUTTON_C = C.GLUT_JOYSTICK_BUTTON_C JOYSTICK_BUTTON_D = C.GLUT_JOYSTICK_BUTTON_D )
glut api version >= 4 or xlib implementation >= 13
const ( GAME_MODE_ACTIVE = C.GLUT_GAME_MODE_ACTIVE GAME_MODE_POSSIBLE = C.GLUT_GAME_MODE_POSSIBLE GAME_MODE_WIDTH = C.GLUT_GAME_MODE_WIDTH GAME_MODE_HEIGHT = C.GLUT_GAME_MODE_HEIGHT GAME_MODE_PIXEL_DEPTH = C.GLUT_GAME_MODE_PIXEL_DEPTH GAME_MODE_REFRESH_RATE = C.GLUT_GAME_MODE_REFRESH_RATE GAME_MODE_DISPLAY_CHANGED = C.GLUT_GAME_MODE_DISPLAY_CHANGED )
glut api version >= 4 or xlib implementation >= 13
const (
HAS_MULTI = C.GLUT_HAS_MULTI
)
multi-touch/multi-pointer definitions
Variables ¶
This section is empty.
Functions ¶
func AddMenuEntry ¶
func AddSubMenu ¶
func AttachMenu ¶
func AttachMenu(button int)
func BitmapCharacter ¶
func BitmapHeight ¶
func BitmapLength ¶
glut api version >= 4 or xlib implementation >= 11
func BitmapString ¶
func BitmapWidth ¶
func ButtonBoxFunc ¶
func ButtonBoxFunc(buttonBox func(button, state int))
func ChangeToMenuEntry ¶
func ChangeToSubMenu ¶
func CopyColormap ¶
func CopyColormap(windowId int)
func CreateMenu ¶
func CreateSubWindow ¶
func CreateWindow ¶
func DestroyMenu ¶
func DestroyMenu(menuId int)
func DestroyWindow ¶
func DestroyWindow(windowId int)
func DetachMenu ¶
func DetachMenu(button int)
func DisplayFunc ¶
func DisplayFunc(display func())
func EstablishOverlay ¶
func EstablishOverlay()
func ExtensionSupported ¶
func ForceJoystickFunc ¶
func ForceJoystickFunc()
glut api version >= 4 or xlib implementation >= 13
func FullScreen ¶
func FullScreen()
func FullScreenToggle ¶
func FullScreenToggle()
func GameModeGet ¶
glut api version >= 4 or xlib implementation >= 13
func GameModeString ¶
func GameModeString(s string)
glut api version >= 4 or xlib implementation >= 13
func GetMenuData ¶
func GetMenuData() interface{}
func GetModeValues ¶
func GetModifiers ¶
func GetModifiers() int
func GetProcAddress ¶
func GetWindowData ¶
func GetWindowData() interface{}
func HideOverlay ¶
func HideOverlay()
func HideWindow ¶
func HideWindow()
func IconifyWindow ¶
func IconifyWindow()
func IgnoreKeyRepeat ¶
func IgnoreKeyRepeat(ignore int)
glut api version >= 4 or xlib implementation >= 13
func InitContextFlags ¶
func InitContextFlags(flags int)
func InitContextProfile ¶
func InitContextProfile(profile int)
func InitContextVersion ¶
func InitContextVersion(majorVersion, minorVersion int)
func InitDisplayMode ¶
func InitDisplayMode(mode uint)
func InitErrorFunc ¶
func InitErrorFunc(errorFunc func(msg string))
func InitWarningFunc ¶
func InitWarningFunc(warningFunc func(msg string))
func InitWindowPosition ¶
func InitWindowPosition(width, height int)
func InitWindowSize ¶
func InitWindowSize(width, height int)
func JoystickFunc ¶
glut api version >= 4 or xlib implementation >= 13
func KeyboardFunc ¶
func KeyboardUpFunc ¶
glut api version >= 4 or xlib implementation >= 13
func LeaveFullScreen ¶
func LeaveFullScreen()
func LeaveMainLoop ¶
func LeaveMainLoop()
func MainLoopEvent ¶
func MainLoopEvent()
func MenuDestroyFunc ¶
func MenuDestroyFunc(menuDestroyFunc func())
func MenuStateFunc ¶
func MenuStateFunc(menuState func(status int))
func MenuStatusFunc ¶
func MenuStatusFunc(menuStatus func(status, x, y int))
func MotionFunc ¶
func MotionFunc(motion func(x, y int))
func MouseWheelFunc ¶
func MouseWheelFunc(mouseWheelFunc func(wheel, direction, x, y int))
func MultiButtonFunc ¶
func MultiButtonFunc(multiButton func(id, x, y, button, status int))
func MultiEntryFunc ¶
func MultiEntryFunc(multiEntry func(id, status int))
func MultiMotionFunc ¶
func MultiMotionFunc(multiMotion func(id, x, y int))
func MultiPassiveFunc ¶
func MultiPassiveFunc(multiPassive func(id, x, y int))
func OverlayDisplayFunc ¶
func OverlayDisplayFunc(overlayDisplay func())
func PassiveMotionFunc ¶
func PassiveMotionFunc(passiveMotion func(x, y int))
func PositionWindow ¶
func PositionWindow(x, y int)
func PostOverlayRedisplay ¶
func PostOverlayRedisplay()
func PostRedisplay ¶
func PostRedisplay()
func PostWindowOverlayRedisplay ¶
func PostWindowOverlayRedisplay(windowId int)
glut api version >= 4 or xlib implementation >= 11
func PostWindowRedisplay ¶
func PostWindowRedisplay(windowId int)
glut api version >= 4 or xlib implementation >= 11
func PushWindow ¶
func PushWindow()
func RemoveMenuItem ¶
func RemoveOverlay ¶
func RemoveOverlay()
func ReshapeFunc ¶
func ReshapeFunc(reshape func(width, height int))
func ReshapeWindow ¶
func ReshapeWindow(width, height int)
func SetIconTitle ¶
func SetIconTitle(title string)
func SetKeyRepeat ¶
func SetKeyRepeat(repeatMode int)
glut api version >= 4 or xlib implementation >= 13
func SetMenuData ¶
func SetMenuData(menuData interface{})
func SetWindowData ¶
func SetWindowData(data interface{})
func SetWindowTitle ¶
func SetWindowTitle(title string)
func SetupVideoResizing ¶
func SetupVideoResizing()
glut api version >= 4 or xlib implementation >= 9
func ShowOverlay ¶
func ShowOverlay()
func ShowWindow ¶
func ShowWindow()
func SolidCylinder ¶
func SolidDodecahedron ¶
func SolidDodecahedron()
func SolidIcosahedron ¶
func SolidIcosahedron()
func SolidOctahedron ¶
func SolidOctahedron()
func SolidRhombicDodecahedron ¶
func SolidRhombicDodecahedron()
func SolidSierpinskiSponge ¶
func SolidSphere ¶
func SolidTeapot ¶
func SolidTeapot(size float64)
func SolidTetrahedron ¶
func SolidTetrahedron()
func SolidTorus ¶
func SpaceballButtonFunc ¶
func SpaceballButtonFunc(spaceballButton func(button, state int))
func SpaceballMotionFunc ¶
func SpaceballMotionFunc(spaceballMotion func(x, y, z int))
func SpaceballRotateFunc ¶
func SpaceballRotateFunc(spaceballRotate func(x, y, z int))
func SpecialFunc ¶
func SpecialFunc(special func(key, x, y int))
func SpecialUpFunc ¶
func SpecialUpFunc(specialUp func(key, x, y int))
glut api version >= 4 or xlib implementation >= 13
func StrokeCharacter ¶
func StrokeHeight ¶
func StrokeLength ¶
glut api version >= 4 or xlib implementation >= 11
func StrokeString ¶
func StrokeWidth ¶
func SwapBuffers ¶
func SwapBuffers()
func TabletButtonFunc ¶
func TabletButtonFunc(tabletButton func(button, state, x, y int))
func TabletMotionFunc ¶
func TabletMotionFunc(tabletMotion func(x, y int))
func TimerFunc ¶
Do not register a second timer with the same id, before the first run out. timer should not be nil.
func VideoPan ¶
func VideoPan(x, y, width, height int)
glut api version >= 4 or xlib implementation >= 9
func VideoResize ¶
func VideoResize(x, y, width, height int)
glut api version >= 4 or xlib implementation >= 9
func VideoResizeGet ¶
glut api version >= 4 or xlib implementation >= 9
func VisibilityFunc ¶
func VisibilityFunc(visibility func(state int))
func WMCloseFunc ¶
func WMCloseFunc(wmCloseFunc func())
func WindowStatusFunc ¶
func WindowStatusFunc(windowStatus func(state int))
glut api version >= 4 or xlib implementation >= 9
func WireCylinder ¶
func WireDodecahedron ¶
func WireDodecahedron()
func WireIcosahedron ¶
func WireIcosahedron()
func WireOctahedron ¶
func WireOctahedron()
func WireRhombicDodecahedron ¶
func WireRhombicDodecahedron()
func WireSierpinskiSponge ¶
func WireSphere ¶
func WireTeapot ¶
func WireTeapot(size float64)
func WireTetrahedron ¶
func WireTetrahedron()
Types ¶
This section is empty.