Documentation ¶
Index ¶
- Constants
- func DetachCurrentContext()
- func Init() error
- func PollEvents()
- func PostEmptyEvent()
- func SwapInterval(n int)
- func Terminate()
- func WaitEvents()
- func WindowHint(hint int, value int)
- type Action
- type Key
- type ModifierKey
- type Monitor
- type MouseButton
- type Scancode
- type VideoMode
- type Window
- func (w *Window) Destroy()
- func (w *Window) GetCursorPos() (float64, float64)
- func (w *Window) GetFramebufferSize() (int, int)
- func (w *Window) GetPos() (int, int)
- func (w *Window) GetSize() (int, int)
- func (w *Window) GetWindowUserPointer() unsafe.Pointer
- func (w *Window) Handle() *C.GLFWwindow
- func (w *Window) MakeContextCurrent()
- func (w *Window) SetCursorPosCallback(f func(ww *Window, x float64, y float64))
- func (w *Window) SetFramebufferSizeCallback(f func(ww *Window, width int, height int))
- func (w *Window) SetIcon(images []image.Image)
- func (w *Window) SetKeyCallback(...)
- func (w *Window) SetMonitor(m *Monitor, x, y, width, height, refreshRate int)
- func (w *Window) SetMouseButtonCallback(f func(ww *Window, button MouseButton, action Action, mods ModifierKey))
- func (w *Window) SetPos(x, y int)
- func (w *Window) SetRefreshCallback(f func(ww *Window))
- func (w *Window) SetScrollCallback(f func(ww *Window, xoff float64, yoff float64))
- func (w *Window) SetShouldClose(b bool)
- func (w *Window) SetSizeCallback(f func(ww *Window, width int, height int))
- func (w *Window) SetWindowUserPointer(ptr unsafe.Pointer)
- func (w *Window) ShouldClose() bool
- func (w *Window) Show()
- func (w *Window) SwapBuffers()
Constants ¶
View Source
const AccumAlphaBits = C.GLFW_ACCUM_ALPHA_BITS
View Source
const AccumBlueBits = C.GLFW_ACCUM_BLUE_BITS
View Source
const AccumGreenBits = C.GLFW_ACCUM_GREEN_BITS
View Source
const AccumRedBits = C.GLFW_ACCUM_RED_BITS
View Source
const AlphaBits = C.GLFW_ALPHA_BITS
View Source
const AnglePlatformType = C.GLFW_ANGLE_PLATFORM_TYPE
View Source
const AnglePlatformTypeD3D11 = C.GLFW_ANGLE_PLATFORM_TYPE_D3D11
View Source
const AnglePlatformTypeD3D9 = C.GLFW_ANGLE_PLATFORM_TYPE_D3D9
View Source
const AnglePlatformTypeMetal = C.GLFW_ANGLE_PLATFORM_TYPE_METAL
View Source
const AnglePlatformTypeNone = C.GLFW_ANGLE_PLATFORM_TYPE_NONE
View Source
const AnglePlatformTypeOpenGL = C.GLFW_ANGLE_PLATFORM_TYPE_OPENGL
View Source
const AnglePlatformTypeOpenGLes = C.GLFW_ANGLE_PLATFORM_TYPE_OPENGLES
View Source
const AnglePlatformTypeVulkan = C.GLFW_ANGLE_PLATFORM_TYPE_VULKAN
View Source
const AnyPlatform = C.GLFW_ANY_PLATFORM
View Source
const AnyPosition = C.GLFW_ANY_POSITION
View Source
const AnyReleaseBehavior = C.GLFW_ANY_RELEASE_BEHAVIOR
View Source
const ArrowCursor = C.GLFW_ARROW_CURSOR
View Source
const AutoIconify = C.GLFW_AUTO_ICONIFY
View Source
const AuxBuffers = C.GLFW_AUX_BUFFERS
View Source
const BlueBits = C.GLFW_BLUE_BITS
View Source
const CenterCursor = C.GLFW_CENTER_CURSOR
View Source
const ClientApi = C.GLFW_CLIENT_API
View Source
const CocoaChdirResources = C.GLFW_COCOA_CHDIR_RESOURCES
View Source
const CocoaFrameName = C.GLFW_COCOA_FRAME_NAME
View Source
const CocoaGraphicsSwitching = C.GLFW_COCOA_GRAPHICS_SWITCHING
View Source
const CocoaMenubar = C.GLFW_COCOA_MENUBAR
View Source
const CocoaRetinaFramebuffer = C.GLFW_COCOA_RETINA_FRAMEBUFFER
View Source
const Connected = C.GLFW_CONNECTED
View Source
const ContextCreationApi = C.GLFW_CONTEXT_CREATION_API
View Source
const ContextDebug = C.GLFW_CONTEXT_DEBUG
View Source
const ContextNoError = C.GLFW_CONTEXT_NO_ERROR
View Source
const ContextReleaseBehavior = C.GLFW_CONTEXT_RELEASE_BEHAVIOR
View Source
const ContextRevision = C.GLFW_CONTEXT_REVISION
View Source
const ContextRobustness = C.GLFW_CONTEXT_ROBUSTNESS
View Source
const ContextVersionMajor = C.GLFW_CONTEXT_VERSION_MAJOR
View Source
const ContextVersionMinor = C.GLFW_CONTEXT_VERSION_MINOR
View Source
const CrosshairCursor = C.GLFW_CROSSHAIR_CURSOR
View Source
const Cursor = C.GLFW_CURSOR
View Source
const CursorCaptured = C.GLFW_CURSOR_CAPTURED
View Source
const CursorDisabled = C.GLFW_CURSOR_DISABLED
View Source
const CursorHidden = C.GLFW_CURSOR_HIDDEN
View Source
const CursorNormal = C.GLFW_CURSOR_NORMAL
View Source
const Decorated = C.GLFW_DECORATED
View Source
const DepthBits = C.GLFW_DEPTH_BITS
View Source
const Disconnected = C.GLFW_DISCONNECTED
View Source
const DontCare = C.GLFW_DONT_CARE
View Source
const Doublebuffer = C.GLFW_DOUBLEBUFFER
View Source
const EglContextApi = C.GLFW_EGL_CONTEXT_API
View Source
const False = C.GLFW_FALSE
View Source
const FeatureUnimplemented = C.GLFW_FEATURE_UNIMPLEMENTED
View Source
const Floating = C.GLFW_FLOATING
View Source
const FocusOnShow = C.GLFW_FOCUS_ON_SHOW
View Source
const Focused = C.GLFW_FOCUSED
View Source
const GamepadAxisLast = C.GLFW_GAMEPAD_AXIS_LAST
View Source
const GamepadAxisLeftTrigger = C.GLFW_GAMEPAD_AXIS_LEFT_TRIGGER
View Source
const GamepadAxisLeftX = C.GLFW_GAMEPAD_AXIS_LEFT_X
View Source
const GamepadAxisLeftY = C.GLFW_GAMEPAD_AXIS_LEFT_Y
View Source
const GamepadAxisRightTrigger = C.GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
View Source
const GamepadAxisRightX = C.GLFW_GAMEPAD_AXIS_RIGHT_X
View Source
const GamepadAxisRightY = C.GLFW_GAMEPAD_AXIS_RIGHT_Y
View Source
const GamepadButtonA = C.GLFW_GAMEPAD_BUTTON_A
View Source
const GamepadButtonB = C.GLFW_GAMEPAD_BUTTON_B
View Source
const GamepadButtonBack = C.GLFW_GAMEPAD_BUTTON_BACK
View Source
const GamepadButtonCircle = C.GLFW_GAMEPAD_BUTTON_CIRCLE
View Source
const GamepadButtonCross = C.GLFW_GAMEPAD_BUTTON_CROSS
View Source
const GamepadButtonDpadDown = C.GLFW_GAMEPAD_BUTTON_DPAD_DOWN
View Source
const GamepadButtonDpadLeft = C.GLFW_GAMEPAD_BUTTON_DPAD_LEFT
View Source
const GamepadButtonDpadRight = C.GLFW_GAMEPAD_BUTTON_DPAD_RIGHT
View Source
const GamepadButtonDpadUp = C.GLFW_GAMEPAD_BUTTON_DPAD_UP
View Source
const GamepadButtonGuide = C.GLFW_GAMEPAD_BUTTON_GUIDE
View Source
const GamepadButtonLast = C.GLFW_GAMEPAD_BUTTON_LAST
View Source
const GamepadButtonLeftBumper = C.GLFW_GAMEPAD_BUTTON_LEFT_BUMPER
View Source
const GamepadButtonLeftThumb = C.GLFW_GAMEPAD_BUTTON_LEFT_THUMB
View Source
const GamepadButtonRightBumper = C.GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER
View Source
const GamepadButtonRightThumb = C.GLFW_GAMEPAD_BUTTON_RIGHT_THUMB
View Source
const GamepadButtonSquare = C.GLFW_GAMEPAD_BUTTON_SQUARE
View Source
const GamepadButtonStart = C.GLFW_GAMEPAD_BUTTON_START
View Source
const GamepadButtonTriangle = C.GLFW_GAMEPAD_BUTTON_TRIANGLE
View Source
const GamepadButtonX = C.GLFW_GAMEPAD_BUTTON_X
View Source
const GamepadButtonY = C.GLFW_GAMEPAD_BUTTON_Y
View Source
const GreenBits = C.GLFW_GREEN_BITS
View Source
const HandCursor = C.GLFW_HAND_CURSOR
View Source
const HatCentered = C.GLFW_HAT_CENTERED
View Source
const HatDown = C.GLFW_HAT_DOWN
View Source
const HatLeft = C.GLFW_HAT_LEFT
View Source
const HatRight = C.GLFW_HAT_RIGHT
View Source
const HatUp = C.GLFW_HAT_UP
View Source
const Hovered = C.GLFW_HOVERED
View Source
const HresizeCursor = C.GLFW_HRESIZE_CURSOR
View Source
const IbeamCursor = C.GLFW_IBEAM_CURSOR
View Source
const Iconified = C.GLFW_ICONIFIED
View Source
const InvalidEnum = C.GLFW_INVALID_ENUM
View Source
const InvalidValue = C.GLFW_INVALID_VALUE
View Source
const Joystick1 = C.GLFW_JOYSTICK_1
View Source
const Joystick10 = C.GLFW_JOYSTICK_10
View Source
const Joystick11 = C.GLFW_JOYSTICK_11
View Source
const Joystick12 = C.GLFW_JOYSTICK_12
View Source
const Joystick13 = C.GLFW_JOYSTICK_13
View Source
const Joystick14 = C.GLFW_JOYSTICK_14
View Source
const Joystick15 = C.GLFW_JOYSTICK_15
View Source
const Joystick16 = C.GLFW_JOYSTICK_16
View Source
const Joystick2 = C.GLFW_JOYSTICK_2
View Source
const Joystick3 = C.GLFW_JOYSTICK_3
View Source
const Joystick4 = C.GLFW_JOYSTICK_4
View Source
const Joystick5 = C.GLFW_JOYSTICK_5
View Source
const Joystick6 = C.GLFW_JOYSTICK_6
View Source
const Joystick7 = C.GLFW_JOYSTICK_7
View Source
const Joystick8 = C.GLFW_JOYSTICK_8
View Source
const Joystick9 = C.GLFW_JOYSTICK_9
View Source
const JoystickHatButtons = C.GLFW_JOYSTICK_HAT_BUTTONS
View Source
const JoystickLast = C.GLFW_JOYSTICK_LAST
View Source
const Key0 = C.GLFW_KEY_0
View Source
const Key1 = C.GLFW_KEY_1
View Source
const Key2 = C.GLFW_KEY_2
View Source
const Key3 = C.GLFW_KEY_3
View Source
const Key4 = C.GLFW_KEY_4
View Source
const Key5 = C.GLFW_KEY_5
View Source
const Key6 = C.GLFW_KEY_6
View Source
const Key7 = C.GLFW_KEY_7
View Source
const Key8 = C.GLFW_KEY_8
View Source
const Key9 = C.GLFW_KEY_9
View Source
const KeyA = C.GLFW_KEY_A
View Source
const KeyApostrophe = C.GLFW_KEY_APOSTROPHE
View Source
const KeyB = C.GLFW_KEY_B
View Source
const KeyBackslash = C.GLFW_KEY_BACKSLASH
View Source
const KeyBackspace = C.GLFW_KEY_BACKSPACE
View Source
const KeyC = C.GLFW_KEY_C
View Source
const KeyCapsLock = C.GLFW_KEY_CAPS_LOCK
View Source
const KeyComma = C.GLFW_KEY_COMMA
View Source
const KeyD = C.GLFW_KEY_D
View Source
const KeyDelete = C.GLFW_KEY_DELETE
View Source
const KeyDown = C.GLFW_KEY_DOWN
View Source
const KeyE = C.GLFW_KEY_E
View Source
const KeyEnd = C.GLFW_KEY_END
View Source
const KeyEnter = C.GLFW_KEY_ENTER
View Source
const KeyEqual = C.GLFW_KEY_EQUAL
View Source
const KeyEscape = C.GLFW_KEY_ESCAPE
View Source
const KeyF = C.GLFW_KEY_F
View Source
const KeyF1 = C.GLFW_KEY_F1
View Source
const KeyF10 = C.GLFW_KEY_F10
View Source
const KeyF11 = C.GLFW_KEY_F11
View Source
const KeyF12 = C.GLFW_KEY_F12
View Source
const KeyF13 = C.GLFW_KEY_F13
View Source
const KeyF14 = C.GLFW_KEY_F14
View Source
const KeyF15 = C.GLFW_KEY_F15
View Source
const KeyF16 = C.GLFW_KEY_F16
View Source
const KeyF17 = C.GLFW_KEY_F17
View Source
const KeyF18 = C.GLFW_KEY_F18
View Source
const KeyF19 = C.GLFW_KEY_F19
View Source
const KeyF2 = C.GLFW_KEY_F2
View Source
const KeyF20 = C.GLFW_KEY_F20
View Source
const KeyF21 = C.GLFW_KEY_F21
View Source
const KeyF22 = C.GLFW_KEY_F22
View Source
const KeyF23 = C.GLFW_KEY_F23
View Source
const KeyF24 = C.GLFW_KEY_F24
View Source
const KeyF25 = C.GLFW_KEY_F25
View Source
const KeyF3 = C.GLFW_KEY_F3
View Source
const KeyF4 = C.GLFW_KEY_F4
View Source
const KeyF5 = C.GLFW_KEY_F5
View Source
const KeyF6 = C.GLFW_KEY_F6
View Source
const KeyF7 = C.GLFW_KEY_F7
View Source
const KeyF8 = C.GLFW_KEY_F8
View Source
const KeyF9 = C.GLFW_KEY_F9
View Source
const KeyG = C.GLFW_KEY_G
View Source
const KeyGraveAccent = C.GLFW_KEY_GRAVE_ACCENT
View Source
const KeyH = C.GLFW_KEY_H
View Source
const KeyHome = C.GLFW_KEY_HOME
View Source
const KeyI = C.GLFW_KEY_I
View Source
const KeyInsert = C.GLFW_KEY_INSERT
View Source
const KeyJ = C.GLFW_KEY_J
View Source
const KeyK = C.GLFW_KEY_K
View Source
const KeyKp0 = C.GLFW_KEY_KP_0
View Source
const KeyKp1 = C.GLFW_KEY_KP_1
View Source
const KeyKp2 = C.GLFW_KEY_KP_2
View Source
const KeyKp3 = C.GLFW_KEY_KP_3
View Source
const KeyKp4 = C.GLFW_KEY_KP_4
View Source
const KeyKp5 = C.GLFW_KEY_KP_5
View Source
const KeyKp6 = C.GLFW_KEY_KP_6
View Source
const KeyKp7 = C.GLFW_KEY_KP_7
View Source
const KeyKp8 = C.GLFW_KEY_KP_8
View Source
const KeyKp9 = C.GLFW_KEY_KP_9
View Source
const KeyKpAdd = C.GLFW_KEY_KP_ADD
View Source
const KeyKpDecimal = C.GLFW_KEY_KP_DECIMAL
View Source
const KeyKpDivide = C.GLFW_KEY_KP_DIVIDE
View Source
const KeyKpEnter = C.GLFW_KEY_KP_ENTER
View Source
const KeyKpEqual = C.GLFW_KEY_KP_EQUAL
View Source
const KeyKpMultiply = C.GLFW_KEY_KP_MULTIPLY
View Source
const KeyKpSubtract = C.GLFW_KEY_KP_SUBTRACT
View Source
const KeyL = C.GLFW_KEY_L
View Source
const KeyLast = C.GLFW_KEY_LAST
View Source
const KeyLeft = C.GLFW_KEY_LEFT
View Source
const KeyLeftAlt = C.GLFW_KEY_LEFT_ALT
View Source
const KeyLeftBracket = C.GLFW_KEY_LEFT_BRACKET
View Source
const KeyLeftControl = C.GLFW_KEY_LEFT_CONTROL
View Source
const KeyLeftShift = C.GLFW_KEY_LEFT_SHIFT
View Source
const KeyLeftSuper = C.GLFW_KEY_LEFT_SUPER
View Source
const KeyM = C.GLFW_KEY_M
View Source
const KeyMenu = C.GLFW_KEY_MENU
View Source
const KeyMinus = C.GLFW_KEY_MINUS
View Source
const KeyN = C.GLFW_KEY_N
View Source
const KeyNumLock = C.GLFW_KEY_NUM_LOCK
View Source
const KeyO = C.GLFW_KEY_O
View Source
const KeyP = C.GLFW_KEY_P
View Source
const KeyPageDown = C.GLFW_KEY_PAGE_DOWN
View Source
const KeyPageUp = C.GLFW_KEY_PAGE_UP
View Source
const KeyPause = C.GLFW_KEY_PAUSE
View Source
const KeyPeriod = C.GLFW_KEY_PERIOD
View Source
const KeyPrintScreen = C.GLFW_KEY_PRINT_SCREEN
View Source
const KeyQ = C.GLFW_KEY_Q
View Source
const KeyR = C.GLFW_KEY_R
View Source
const KeyRight = C.GLFW_KEY_RIGHT
View Source
const KeyRightAlt = C.GLFW_KEY_RIGHT_ALT
View Source
const KeyRightBracket = C.GLFW_KEY_RIGHT_BRACKET
View Source
const KeyRightControl = C.GLFW_KEY_RIGHT_CONTROL
View Source
const KeyRightShift = C.GLFW_KEY_RIGHT_SHIFT
View Source
const KeyRightSuper = C.GLFW_KEY_RIGHT_SUPER
View Source
const KeyS = C.GLFW_KEY_S
View Source
const KeyScrollLock = C.GLFW_KEY_SCROLL_LOCK
View Source
const KeySemicolon = C.GLFW_KEY_SEMICOLON
View Source
const KeySlash = C.GLFW_KEY_SLASH
View Source
const KeySpace = C.GLFW_KEY_SPACE
View Source
const KeyT = C.GLFW_KEY_T
View Source
const KeyTab = C.GLFW_KEY_TAB
View Source
const KeyU = C.GLFW_KEY_U
View Source
const KeyUnknown = C.GLFW_KEY_UNKNOWN
View Source
const KeyUp = C.GLFW_KEY_UP
View Source
const KeyV = C.GLFW_KEY_V
View Source
const KeyW = C.GLFW_KEY_W
View Source
const KeyWorld1 = C.GLFW_KEY_WORLD_1
View Source
const KeyWorld2 = C.GLFW_KEY_WORLD_2
View Source
const KeyX = C.GLFW_KEY_X
View Source
const KeyY = C.GLFW_KEY_Y
View Source
const KeyZ = C.GLFW_KEY_Z
View Source
const LockKeyMods = C.GLFW_LOCK_KEY_MODS
View Source
const LoseContextOnReset = C.GLFW_LOSE_CONTEXT_ON_RESET
View Source
const Maximized = C.GLFW_MAXIMIZED
View Source
const ModAlt = C.GLFW_MOD_ALT
View Source
const ModCapsLock = C.GLFW_MOD_CAPS_LOCK
View Source
const ModControl = C.GLFW_MOD_CONTROL
View Source
const ModNumLock = C.GLFW_MOD_NUM_LOCK
View Source
const ModShift = C.GLFW_MOD_SHIFT
View Source
const ModSuper = C.GLFW_MOD_SUPER
View Source
const MouseButton1 = C.GLFW_MOUSE_BUTTON_1
View Source
const MouseButton2 = C.GLFW_MOUSE_BUTTON_2
View Source
const MouseButton3 = C.GLFW_MOUSE_BUTTON_3
View Source
const MouseButton4 = C.GLFW_MOUSE_BUTTON_4
View Source
const MouseButton5 = C.GLFW_MOUSE_BUTTON_5
View Source
const MouseButton6 = C.GLFW_MOUSE_BUTTON_6
View Source
const MouseButton7 = C.GLFW_MOUSE_BUTTON_7
View Source
const MouseButton8 = C.GLFW_MOUSE_BUTTON_8
View Source
const MouseButtonLast = C.GLFW_MOUSE_BUTTON_LAST
View Source
const MouseButtonLeft = C.GLFW_MOUSE_BUTTON_LEFT
View Source
const MouseButtonMiddle = C.GLFW_MOUSE_BUTTON_MIDDLE
View Source
const MouseButtonRight = C.GLFW_MOUSE_BUTTON_RIGHT
View Source
const MousePassthrough = C.GLFW_MOUSE_PASSTHROUGH
View Source
const NativeContextApi = C.GLFW_NATIVE_CONTEXT_API
View Source
const NoApi = C.GLFW_NO_API
View Source
const NoCurrentContext = C.GLFW_NO_CURRENT_CONTEXT
View Source
const NoError = C.GLFW_NO_ERROR
View Source
const NoResetNotification = C.GLFW_NO_RESET_NOTIFICATION
View Source
const NoRobustness = C.GLFW_NO_ROBUSTNESS
View Source
const NoWindowContext = C.GLFW_NO_WINDOW_CONTEXT
View Source
const NotAllowedCursor = C.GLFW_NOT_ALLOWED_CURSOR
View Source
const NotInitialized = C.GLFW_NOT_INITIALIZED
View Source
const OpenGLAnyProfile = C.GLFW_OPENGL_ANY_PROFILE
View Source
const OpenGLApi = C.GLFW_OPENGL_API
View Source
const OpenGLCompatProfile = C.GLFW_OPENGL_COMPAT_PROFILE
View Source
const OpenGLCoreProfile = C.GLFW_OPENGL_CORE_PROFILE
View Source
const OpenGLDebugContext = C.GLFW_OPENGL_DEBUG_CONTEXT
View Source
const OpenGLEsApi = C.GLFW_OPENGL_ES_API
View Source
const OpenGLForwardCompatible = C.GLFW_OPENGL_FORWARD_COMPAT
View Source
const OpenGLProfile = C.GLFW_OPENGL_PROFILE
View Source
const OsmesaContextApi = C.GLFW_OSMESA_CONTEXT_API
View Source
const OutOfMemory = C.GLFW_OUT_OF_MEMORY
View Source
const Platform = C.GLFW_PLATFORM
View Source
const PlatformCocoa = C.GLFW_PLATFORM_COCOA
View Source
const PlatformError = C.GLFW_PLATFORM_ERROR
View Source
const PlatformNull = C.GLFW_PLATFORM_NULL
View Source
const PlatformWayland = C.GLFW_PLATFORM_WAYLAND
View Source
const PlatformWin32 = C.GLFW_PLATFORM_WIN32
View Source
const PlatformX11 = C.GLFW_PLATFORM_X11
View Source
const PointingHandCursor = C.GLFW_POINTING_HAND_CURSOR
View Source
const PositionX = C.GLFW_POSITION_X
View Source
const PositionY = C.GLFW_POSITION_Y
View Source
const Press = C.GLFW_PRESS
View Source
const RawMouseMotion = C.GLFW_RAW_MOUSE_MOTION
View Source
const RedBits = C.GLFW_RED_BITS
View Source
const RefreshRate = C.GLFW_REFRESH_RATE
View Source
const Release = C.GLFW_RELEASE
View Source
const ReleaseBehaviorFlush = C.GLFW_RELEASE_BEHAVIOR_FLUSH
View Source
const ReleaseBehaviorNone = C.GLFW_RELEASE_BEHAVIOR_NONE
View Source
const Repeat = C.GLFW_REPEAT
View Source
const Resizable = C.GLFW_RESIZABLE
View Source
const ResizeAllCursor = C.GLFW_RESIZE_ALL_CURSOR
View Source
const ResizeEwCursor = C.GLFW_RESIZE_EW_CURSOR
View Source
const ResizeNeswCursor = C.GLFW_RESIZE_NESW_CURSOR
View Source
const ResizeNsCursor = C.GLFW_RESIZE_NS_CURSOR
View Source
const ResizeNwseCursor = C.GLFW_RESIZE_NWSE_CURSOR
View Source
const Samples = C.GLFW_SAMPLES
View Source
const ScaleFramebuffer = C.GLFW_SCALE_FRAMEBUFFER
View Source
const ScaleToMonitor = C.GLFW_SCALE_TO_MONITOR
View Source
const SrgbCapable = C.GLFW_SRGB_CAPABLE
View Source
const StencilBits = C.GLFW_STENCIL_BITS
View Source
const Stereo = C.GLFW_STEREO
View Source
const StickyKeys = C.GLFW_STICKY_KEYS
View Source
const StickyMouseButtons = C.GLFW_STICKY_MOUSE_BUTTONS
View Source
const TransparentFramebuffer = C.GLFW_TRANSPARENT_FRAMEBUFFER
View Source
const True = C.GLFW_TRUE
View Source
const UnlimitedMouseButtons = C.GLFW_UNLIMITED_MOUSE_BUTTONS
View Source
const VersionMajor = C.GLFW_VERSION_MAJOR
View Source
const VersionMinor = C.GLFW_VERSION_MINOR
View Source
const VersionRevision = C.GLFW_VERSION_REVISION
View Source
const Visible = C.GLFW_VISIBLE
View Source
const VresizeCursor = C.GLFW_VRESIZE_CURSOR
View Source
const WaylandAppId = C.GLFW_WAYLAND_APP_ID
View Source
const WaylandDisableLibdecor = C.GLFW_WAYLAND_DISABLE_LIBDECOR
View Source
const WaylandLibdecor = C.GLFW_WAYLAND_LIBDECOR
View Source
const WaylandPreferLibdecor = C.GLFW_WAYLAND_PREFER_LIBDECOR
View Source
const Win32KeyboardMenu = C.GLFW_WIN32_KEYBOARD_MENU
View Source
const Win32Showdefault = C.GLFW_WIN32_SHOWDEFAULT
View Source
const X11ClassName = C.GLFW_X11_CLASS_NAME
View Source
const X11InstanceName = C.GLFW_X11_INSTANCE_NAME
View Source
const X11XcbVulkanSurface = C.GLFW_X11_XCB_VULKAN_SURFACE
Variables ¶
This section is empty.
Functions ¶
func DetachCurrentContext ¶
func DetachCurrentContext()
func PollEvents ¶
func PollEvents()
func PostEmptyEvent ¶
func PostEmptyEvent()
func SwapInterval ¶
func SwapInterval(n int)
func WaitEvents ¶
func WaitEvents()
func WindowHint ¶
Types ¶
type ModifierKey ¶
type ModifierKey int
type Monitor ¶
type Monitor C.GLFWmonitor
func GetPrimaryMonitor ¶
func GetPrimaryMonitor() *Monitor
func (*Monitor) GetVideoMode ¶
type MouseButton ¶
type MouseButton int
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func CreateWindow ¶
func GetCurrentContext ¶
func GetCurrentContext() *Window
func (*Window) GetCursorPos ¶
func (*Window) GetFramebufferSize ¶
func (*Window) GetWindowUserPointer ¶
func (*Window) Handle ¶
func (w *Window) Handle() *C.GLFWwindow
func (*Window) MakeContextCurrent ¶
func (w *Window) MakeContextCurrent()
func (*Window) SetCursorPosCallback ¶
func (*Window) SetFramebufferSizeCallback ¶
func (*Window) SetKeyCallback ¶
func (*Window) SetMonitor ¶
func (*Window) SetMouseButtonCallback ¶
func (w *Window) SetMouseButtonCallback(f func(ww *Window, button MouseButton, action Action, mods ModifierKey))
func (*Window) SetRefreshCallback ¶
func (*Window) SetScrollCallback ¶
func (*Window) SetShouldClose ¶
func (*Window) SetSizeCallback ¶
func (*Window) SetWindowUserPointer ¶
func (*Window) ShouldClose ¶
func (*Window) SwapBuffers ¶
func (w *Window) SwapBuffers()
Click to show internal directories.
Click to hide internal directories.