glfw

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharCallback

func CharCallback(window *GLFWwindow, c uint32)

func ContentScaleForWindow

func ContentScaleForWindow(window *GLFWwindow) float32

func CursorEnterCallback

func CursorEnterCallback(window *GLFWwindow, entered int32)

func CursorPosCallback

func CursorPosCallback(window *GLFWwindow, x, y float64)

func InitForOpenGL

func InitForOpenGL(window *GLFWwindow, install_callbacks bool) bool

func InitForOther

func InitForOther(window *GLFWwindow, install_callbacks bool) bool

func InitForVulkan

func InitForVulkan(window *GLFWwindow, install_callbacks bool) bool

func InstallCallbacks

func InstallCallbacks(window *GLFWwindow)

func KeyCallback

func KeyCallback(window *GLFWwindow, key, scancode, action, mods int32)

func MouseButtonCallback

func MouseButtonCallback(window *GLFWwindow, button, action, mods int32)

func NewFrame

func NewFrame()

func RestoreCallbacks

func RestoreCallbacks(window *GLFWwindow)

func ScrollCallback

func ScrollCallback(window *GLFWwindow, xoffset, yoffset float64)

func SetCallbacksChainForAllWindows

func SetCallbacksChainForAllWindows(chain_for_all_windows bool)

func Shutdown

func Shutdown()

func Sleep

func Sleep(milliseconds int32)

func WindowFocusCallback

func WindowFocusCallback(window *GLFWwindow, focused int32)

Types

type GLFWwindow

type GLFWwindow struct {
	CData *C.GLFWwindow
}

func NewGLFWwindowFromC

func NewGLFWwindowFromC[SRC any](cvalue SRC) *GLFWwindow

NewGLFWwindowFromC creates GLFWwindow from its C pointer. SRC ~= *C.GLFWwindow

func (*GLFWwindow) Handle

func (self *GLFWwindow) Handle() (result *C.GLFWwindow, fin func())

Handle returns C version of GLFWwindow and its finalizer func.

Jump to

Keyboard shortcuts

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