glfw2

package module
v0.0.0-...-338fa0e Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2013 License: BSD-3-Clause Imports: 2 Imported by: 0

README

outside-glfw2: GLFW2 API definitions for the Go language (PRERELEASE)

Fire off quick questions to @tHinqa on Twitter
Covered by the same licence conditions as Go is

For use with outside

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 CharFunc

type CharFunc func(int, int)

type Cond

type Cond *void

type EnableDisable

type EnableDisable uint
const (
	MouseCursor EnableDisable = iota + 0x00030001
	StickyKeys
	StickyMouseButtons
	SystemKeys
	KeyRepeat
	AutoPollEvents
)

type Image

type Image struct {
	Width, Height int
	Format        int
	BytesPerPixel int
	Data          *byte
}

type KeyFunc

type KeyFunc func(int, int)

type MouseButtonFunc

type MouseButtonFunc func(int, int)

type MousePosFunc

type MousePosFunc func(int, int)

type MouseWheelFunc

type MouseWheelFunc func(int)

type Mutex

type Mutex *void

type Thread

type Thread int

type ThreadFunc

type ThreadFunc func(*void)

type VidMode

type VidMode struct {
	Width, Height                int
	RedBits, BlueBits, GreenBits int
}

type WindowCloseFunc

type WindowCloseFunc func() int

type WindowMode

type WindowMode uint
const (
	Window WindowMode = iota + 0x00010001
	FullScreen
)

type WindowRefreshFunc

type WindowRefreshFunc func()

type WindowSizeFunc

type WindowSizeFunc func(int, int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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