Documentation ¶
Overview ¶
Package glfw2 provides API definitions for accessing the glfw dll. Definitions based on GLFW 2.7.9
Index ¶
Constants ¶
View Source
const ( KeySpecial = iota + 256 KeyEsc KeyF1 KeyF2 KeyF3 KeyF4 KeyF5 KeyF6 KeyF7 KeyF8 KeyF9 KeyF10 KeyF11 KeyF12 KeyF13 KeyF14 KeyF15 KeyF16 KeyF17 KeyF18 KeyF19 KeyF20 KeyF21 KeyF22 KeyF23 KeyF24 KeyF25 KeyUp KeyDown KeyLeft KeyRight KeyLShift KeyRShift KeyLCtrl KeyRCtrl KeyLAlt KeyRAlt KeyTab KeyEnter KeyBackspace KeyInsert KeyDel KeyPageUp KeyPageDown KeyHome KeyEnd KeyKp0 KeyKp1 KeyKp2 KeyKp3 KeyKp4 KeyKp5 KeyKp6 KeyKp7 KeyKp8 KeyKp9 KeyKpDivide KeyKpMultiply KeyKpSubtract KeyKpAdd KeyKpDecimal KeyKpEqual KeyKpEnter KeyKpNumLock KeyCapsLock KeyScrollLock KeyPause KeyLSuper KeyRSuper KeyMenu KeyLast = KeyMenu )
View Source
const ( Release = iota Press )
Variables ¶
View Source
var BroadcastCond func(cond Cond)
View Source
var CloseWindow func()
View Source
var CreateCond func() Cond
View Source
var CreateMutex func() Mutex
View Source
var CreateThread func(fun ThreadFunc, arg *void) Thread
View Source
var DestroyCond func(cond Cond)
View Source
var DestroyMutex func(mutex Mutex)
View Source
var DestroyThread func(ID Thread)
View Source
var Disable func(token EnableDisable)
View Source
var Enable func(token EnableDisable)
View Source
var ExtensionSupported func(extension string) int
View Source
var FreeImage func(img *Image)
View Source
var GetDesktopMode func(mode *VidMode)
View Source
var GetGLVersion func(major, minor, rev *int)
View Source
var GetJoystickButtons func(joy int, buttons *byte, numbuttons int) int
View Source
var GetJoystickParam func(joy, param int) int
View Source
var GetJoystickPos func(joy int, pos *float32, numaxes int) int
View Source
var GetKey func(key int) bool
View Source
var GetMouseButton func(button int) int
View Source
var GetMousePos func(xpos, ypos *int)
View Source
var GetMouseWheel func() int
View Source
var GetNumberOfProcessors func() int
View Source
var GetProcAddress func(procname string) *void
View Source
var GetThreadID func() Thread
View Source
var GetTime func() float64
View Source
var GetVersion func(major, minor, rev *int)
View Source
var GetVideoModes func(list *VidMode, maxcount int) int
View Source
var GetWindowParam func(param int) int
View Source
var GetWindowSize func(width, height *int)
View Source
var IconifyWindow func()
View Source
var Init func() bool
View Source
var LoadMemoryTexture2D func(data *void, size long, flags int) int
View Source
var LoadTexture2D func(name string, flags int) int
View Source
var LoadTextureImage2D func(img *Image, flags int) int
View Source
var LockMutex func(mutex Mutex)
View Source
var OpenWindow func(width, height, redbits, greenbits, bluebits, alphabits, depthbits, stencilbits int, mode WindowMode) bool
View Source
var OpenWindowHint func(target, hint int)
View Source
var PollEvents func()
View Source
var ReadImage func(name string, img *Image, flags int) int
View Source
var ReadMemoryImage func(data *void, size long, img *Image, flags int) int
View Source
var RestoreWindow func()
View Source
var SetCharCallback func(cbfun CharFunc)
View Source
var SetKeyCallback func(cbfun KeyFunc)
View Source
var SetMouseButtonCallback func(cbfun MouseButtonFunc)
View Source
var SetMousePos func(xpos, ypos int)
View Source
var SetMousePosCallback func(cbfun MousePosFunc)
View Source
var SetMouseWheel func(pos int)
View Source
var SetMouseWheelCallback func(cbfun MouseWheelFunc)
View Source
var SetTime func(time float64)
View Source
var SetWindowCloseCallback func(cbfun WindowCloseFunc)
View Source
var SetWindowPos func(x, y int)
View Source
var SetWindowRefreshCallback func(cbfun WindowRefreshFunc)
View Source
var SetWindowSize func(width, height int)
View Source
var SetWindowSizeCallback func(cbfun WindowSizeFunc)
View Source
var SetWindowTitle func(title string)
View Source
var SignalCond func(cond Cond)
View Source
var Sleep func(time float64)
View Source
var SwapBuffers func()
View Source
var SwapInterval func(interval int)
View Source
var Terminate func()
View Source
var UnlockMutex func(mutex Mutex)
View Source
var WaitCond func(cond Cond, mutex Mutex, timeout float64)
View Source
var WaitEvents func()
View Source
var WaitThread func(ID Thread, waitmode int) int
Functions ¶
This section is empty.
Types ¶
type EnableDisable ¶
type EnableDisable uint
const ( MouseCursor EnableDisable = iota + 0x00030001 StickyKeys StickyMouseButtons SystemKeys KeyRepeat AutoPollEvents )
type MouseButtonFunc ¶
type MousePosFunc ¶
type MouseWheelFunc ¶
type MouseWheelFunc func(int)
type ThreadFunc ¶
type ThreadFunc func(*void)
type WindowCloseFunc ¶
type WindowCloseFunc func() int
type WindowRefreshFunc ¶
type WindowRefreshFunc func()
type WindowSizeFunc ¶
Click to show internal directories.
Click to hide internal directories.