package vendor:glfw/bindings

Index

Constants (0)

This section is empty.

Variables (0)

This section is empty.

Procedures (117)
Procedure Groups (0)

This section is empty.

Types

CharModsProc ¶

CharModsProc :: proc "cdecl" (window: WindowHandle, codepoint: rune, mods: i32)

CharProc ¶

CharProc :: proc "cdecl" (window: WindowHandle, codepoint: rune)

CursorEnterProc ¶

CursorEnterProc :: proc "cdecl" (window: WindowHandle, iconified: i32)

CursorHandle ¶

CursorHandle :: distinct rawptr

CursorPosProc ¶

CursorPosProc :: proc "cdecl" (window: WindowHandle, xpos, ypos: f64)

DropProc ¶

DropProc :: proc "cdecl" (window: WindowHandle, count: i32, paths: [^]cstring)

ErrorProc ¶

ErrorProc :: proc "cdecl" (error: i32, description: cstring)

FramebufferSizeProc ¶

FramebufferSizeProc :: proc "cdecl" (window: WindowHandle, width, height: i32)

GamepadState ¶

GamepadState :: struct {
	buttons: [15]u8,
	axes:    [6]f32,
}

GammaRamp ¶

GammaRamp :: struct {
	red,
	green,
	blue:  [^]u16,
	size:  u32,
}

Image ¶

Image :: struct {
	width,
	height: i32,
	pixels: [^]u8,
}

JoystickProc ¶

JoystickProc :: proc "cdecl" (joy, event: i32)

KeyProc ¶

KeyProc :: proc "cdecl" (window: WindowHandle, key, scancode, action, mods: i32)

MonitorHandle ¶

MonitorHandle :: distinct rawptr

MonitorProc ¶

MonitorProc :: proc "cdecl" (window: WindowHandle)

MouseButtonProc ¶

MouseButtonProc :: proc "cdecl" (window: WindowHandle, button, action, mods: i32)

ScrollProc ¶

ScrollProc :: proc "cdecl" (window: WindowHandle, xpos, ypos: f64)

VidMode ¶

VidMode :: struct {
	width:        i32,
	height:       i32,
	red_bits:     i32,
	green_bits:   i32,
	blue_bits:    i32,
	refresh_rate: i32,
}

WindowCloseProc ¶

WindowCloseProc :: proc "cdecl" (window: WindowHandle)

WindowContentScaleProc ¶

WindowContentScaleProc :: proc "cdecl" (window: WindowHandle, xscale, yscale: f32)

WindowFocusProc ¶

WindowFocusProc :: proc "cdecl" (window: WindowHandle, iconified: i32)

WindowHandle ¶

WindowHandle :: distinct rawptr

WindowIconifyProc ¶

WindowIconifyProc :: proc "cdecl" (window: WindowHandle, iconified: i32)
 

** Procedure type declarations **

WindowMaximizeProc ¶

WindowMaximizeProc :: proc "cdecl" (window: WindowHandle, iconified: i32)

WindowPosProc ¶

WindowPosProc :: proc "cdecl" (window: WindowHandle, width, height: i32)

WindowRefreshProc ¶

WindowRefreshProc :: proc "cdecl" (window: WindowHandle)

WindowSizeProc ¶

WindowSizeProc :: proc "cdecl" (window: WindowHandle, width, height: i32)

Constants

This section is empty.

Variables

This section is empty.

Procedures

CreateCursor ¶

CreateCursor :: proc "cdecl" (image: ^Image, xhot, yhot: i32) -> CursorHandle ---

CreateStandardCursor ¶

CreateStandardCursor :: proc "cdecl" (shape: i32) -> CursorHandle ---

CreateWindow ¶

CreateWindow :: proc "cdecl" (width, height: i32, title: cstring, monitor: MonitorHandle, share: WindowHandle) -> WindowHandle ---

CreateWindowSurface ¶

CreateWindowSurface :: proc "cdecl" (instance: vulkan.Instance, window: WindowHandle, allocator: ^vulkan.AllocationCallbacks, surface: ^vulkan.SurfaceKHR) -> vulkan.Result ---

DefaultWindowHints ¶

DefaultWindowHints :: proc "cdecl" () ---

DestroyCursor ¶

DestroyCursor :: proc "cdecl" (cursor: CursorHandle) ---

DestroyWindow ¶

DestroyWindow :: proc "cdecl" (window: WindowHandle) ---

ExtensionSupported ¶

ExtensionSupported :: proc "cdecl" (str: cstring) -> i32 ---

FocusWindow ¶

FocusWindow :: proc "cdecl" (window: WindowHandle) ---

GetClipboardString ¶

GetClipboardString :: proc "cdecl" (window: WindowHandle) -> cstring ---

GetCurrentContext ¶

GetCurrentContext :: proc "cdecl" () -> WindowHandle ---

GetCursorPos ¶

GetCursorPos :: proc "cdecl" (window: WindowHandle, xpos, ypos: ^f64) ---

GetError ¶

GetError :: proc "cdecl" (description: ^cstring) -> i32 ---

GetFramebufferSize ¶

GetFramebufferSize :: proc "cdecl" (window: WindowHandle, xpos, ypos: ^i32) ---

GetGamepadName ¶

GetGamepadName :: proc "cdecl" (joy: i32) -> cstring ---

GetGamepadState ¶

GetGamepadState :: proc "cdecl" (jid: i32, state: ^GamepadState) -> i32 ---

GetGammaRamp ¶

GetGammaRamp :: proc "cdecl" (monitor: MonitorHandle) -> ^GammaRamp ---

GetInputMode ¶

GetInputMode :: proc "cdecl" (window: WindowHandle, key: i32) -> i32 ---

GetInstanceProcAddress ¶

GetInstanceProcAddress :: proc "cdecl" (instance: vulkan.Instance, procname: cstring) -> rawptr ---

GetJoystickAxes ¶

GetJoystickAxes :: proc "cdecl" (joy: i32, count: ^i32) -> [^]f32 ---

GetJoystickButtons ¶

GetJoystickButtons :: proc "cdecl" (joy: i32, count: ^i32) -> [^]u8 ---

GetJoystickGUID ¶

GetJoystickGUID :: proc "cdecl" (joy: i32) -> cstring ---

GetJoystickHats ¶

GetJoystickHats :: proc "cdecl" (joy: i32, count: ^i32) -> [^]u8 ---

GetJoystickName ¶

GetJoystickName :: proc "cdecl" (joy: i32) -> cstring ---

GetJoystickUserPointer ¶

GetJoystickUserPointer :: proc "cdecl" (jid: i32) -> rawptr ---

GetKey ¶

GetKey :: proc "cdecl" (window: WindowHandle, key: i32) -> i32 ---

GetKeyName ¶

GetKeyName :: proc "cdecl" (key, scancode: i32) -> cstring ---

GetKeyScancode ¶

GetKeyScancode :: proc "cdecl" (key: i32) -> i32 ---

GetMonitorContentScale ¶

GetMonitorContentScale :: proc "cdecl" (monitor: MonitorHandle, xscale, yscale: ^f32) ---

GetMonitorName ¶

GetMonitorName :: proc "cdecl" (monitor: MonitorHandle) -> cstring ---

GetMonitorPhysicalSize ¶

GetMonitorPhysicalSize :: proc "cdecl" (monitor: MonitorHandle, xpos, ypos: ^i32) ---

GetMonitorPos ¶

GetMonitorPos :: proc "cdecl" (monitor: MonitorHandle, xpos, ypos: ^i32) ---

GetMonitorUserPointer ¶

GetMonitorUserPointer :: proc "cdecl" (monitor: MonitorHandle) -> rawptr ---

GetMonitors ¶

GetMonitors :: proc "cdecl" (count: ^i32) -> [^]MonitorHandle ---

GetMouseButton ¶

GetMouseButton :: proc "cdecl" (window: WindowHandle, key: i32) -> i32 ---

GetPhysicalDevicePresentationSupport ¶

GetPhysicalDevicePresentationSupport :: proc "cdecl" (instance: vulkan.Instance, device: vulkan.PhysicalDevice, queuefamily: u32) -> i32 ---

GetPrimaryMonitor ¶

GetPrimaryMonitor :: proc "cdecl" () -> MonitorHandle ---

GetProcAddress ¶

GetProcAddress :: proc "cdecl" (name: cstring) -> rawptr ---

GetRequiredInstanceExtensions ¶

GetRequiredInstanceExtensions :: proc "cdecl" (count: ^u32) -> [^]cstring ---

GetTime ¶

GetTime :: proc "cdecl" () -> f64 ---

GetTimerFrequency ¶

GetTimerFrequency :: proc "cdecl" () -> u64 ---

GetTimerValue ¶

GetTimerValue :: proc "cdecl" () -> u64 ---

GetVersion ¶

GetVersion :: proc "cdecl" (major, minor, rev: ^i32) ---

GetVersionString ¶

GetVersionString :: proc "cdecl" () -> cstring ---

GetVideoMode ¶

GetVideoMode :: proc "cdecl" (monitor: MonitorHandle) -> ^VidMode ---

GetVideoModes ¶

GetVideoModes :: proc "cdecl" (monitor: MonitorHandle, count: ^i32) -> [^]VidMode ---

GetWindowAttrib ¶

GetWindowAttrib :: proc "cdecl" (window: WindowHandle, key: i32) -> i32 ---

GetWindowContentScale ¶

GetWindowContentScale :: proc "cdecl" (window: WindowHandle, xscale, yscale: ^f32) ---

GetWindowFrameSize ¶

GetWindowFrameSize :: proc "cdecl" (window: WindowHandle, left, top, right, bottom: ^i32) ---

GetWindowMonitor ¶

GetWindowMonitor :: proc "cdecl" (window: WindowHandle) -> MonitorHandle ---

GetWindowOpacity ¶

GetWindowOpacity :: proc "cdecl" (window: WindowHandle) -> f32 ---

GetWindowPos ¶

GetWindowPos :: proc "cdecl" (window: WindowHandle, xpos, ypos: ^i32) ---

GetWindowSize ¶

GetWindowSize :: proc "cdecl" (window: WindowHandle, xpos, ypos: ^i32) ---

GetWindowUserPointer ¶

GetWindowUserPointer :: proc "cdecl" (window: WindowHandle) -> rawptr ---

HideWindow ¶

HideWindow :: proc "cdecl" (window: WindowHandle) ---

IconifyWindow ¶

IconifyWindow :: proc "cdecl" (window: WindowHandle) ---

Init ¶

Init :: proc "cdecl" () -> i32 ---

InitHint ¶

InitHint :: proc "cdecl" (joy, event: i32) ---

JoystickIsGamepad ¶

JoystickIsGamepad :: proc "cdecl" (joy: i32) -> b32 ---

JoystickPresent ¶

JoystickPresent :: proc "cdecl" (joy: i32) -> b32 ---

MakeContextCurrent ¶

MakeContextCurrent :: proc "cdecl" (window: WindowHandle) ---

MaximizeWindow ¶

MaximizeWindow :: proc "cdecl" (window: WindowHandle) ---

PollEvents ¶

PollEvents :: proc "cdecl" () ---

PostEmptyEvent ¶

PostEmptyEvent :: proc "cdecl" () ---

RequestWindowAttention ¶

RequestWindowAttention :: proc "cdecl" (window: WindowHandle) ---

RestoreWindow ¶

RestoreWindow :: proc "cdecl" (window: WindowHandle) ---

SetCharCallback ¶

SetCharCallback :: proc "cdecl" (window: WindowHandle, cbfun: CharProc) -> CharProc ---

SetCharModsCallback ¶

SetCharModsCallback :: proc "cdecl" (window: WindowHandle, cbfun: CharModsProc) -> CharModsProc ---

SetClipboardString ¶

SetClipboardString :: proc "cdecl" (window: WindowHandle, title: cstring) ---

SetCursor ¶

SetCursor :: proc "cdecl" (window: WindowHandle, cursor: CursorHandle) ---

SetCursorEnterCallback ¶

SetCursorEnterCallback :: proc "cdecl" (window: WindowHandle, cbfun: CursorEnterProc) -> CursorEnterProc ---

SetCursorPos ¶

SetCursorPos :: proc "cdecl" (window: WindowHandle, xpos, ypos: f64) ---

SetCursorPosCallback ¶

SetCursorPosCallback :: proc "cdecl" (window: WindowHandle, cbfun: CursorPosProc) -> CursorPosProc ---

SetDropCallback ¶

SetDropCallback :: proc "cdecl" (window: WindowHandle, cbfun: DropProc) -> DropProc ---

SetErrorCallback ¶

SetErrorCallback :: proc "cdecl" (cbfun: ErrorProc) -> ErrorProc ---

SetFramebufferSizeCallback ¶

SetFramebufferSizeCallback :: proc "cdecl" (window: WindowHandle, cbfun: FramebufferSizeProc) -> FramebufferSizeProc ---

SetGamma ¶

SetGamma :: proc "cdecl" (monitor: MonitorHandle, gamma: f32) ---

SetGammaRamp ¶

SetGammaRamp :: proc "cdecl" (monitor: MonitorHandle, ramp: ^GammaRamp) ---

SetInputMode ¶

SetInputMode :: proc "cdecl" (window: WindowHandle, width, height: i32) ---

SetJoystickCallback ¶

SetJoystickCallback :: proc "cdecl" (window: WindowHandle, cbfun: JoystickProc) -> JoystickProc ---

SetJoystickUserPointer ¶

SetJoystickUserPointer :: proc "cdecl" (jid: i32, pointer: rawptr) ---

SetKeyCallback ¶

SetKeyCallback :: proc "cdecl" (window: WindowHandle, cbfun: KeyProc) -> KeyProc ---

SetMonitorCallback ¶

SetMonitorCallback :: proc "cdecl" (window: WindowHandle, cbfun: MonitorProc) -> MonitorProc ---

SetMonitorUserPointer ¶

SetMonitorUserPointer :: proc "cdecl" (monitor: MonitorHandle, pointer: rawptr) ---

SetMouseButtonCallback ¶

SetMouseButtonCallback :: proc "cdecl" (window: WindowHandle, cbfun: MouseButtonProc) -> MouseButtonProc ---

SetScrollCallback ¶

SetScrollCallback :: proc "cdecl" (window: WindowHandle, cbfun: ScrollProc) -> ScrollProc ---

SetTime ¶

SetTime :: proc "cdecl" (timeout: f64) ---

SetWindowAspectRatio ¶

SetWindowAspectRatio :: proc "cdecl" (window: WindowHandle, width, height: i32) ---

SetWindowAttrib ¶

SetWindowAttrib :: proc "cdecl" (window: WindowHandle, width, height: i32) ---

SetWindowCloseCallback ¶

SetWindowCloseCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowCloseProc) -> WindowCloseProc ---

SetWindowContentScaleCallback ¶

SetWindowContentScaleCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowContentScaleProc) -> WindowContentScaleProc ---

SetWindowFocusCallback ¶

SetWindowFocusCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowFocusProc) -> WindowFocusProc ---

SetWindowIcon ¶

SetWindowIcon :: proc "cdecl" (window: WindowHandle, count: i32, images: [^]Image) ---

SetWindowIconifyCallback ¶

SetWindowIconifyCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowIconifyProc) -> WindowIconifyProc ---

SetWindowMaximizeCallback ¶

SetWindowMaximizeCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowMaximizeProc) -> WindowMaximizeProc ---

SetWindowMonitor ¶

SetWindowMonitor :: proc "cdecl" (
	window:                    WindowHandle, 
	monitor:                   MonitorHandle, 
	xpos, ypos, width, height, 
) ---

SetWindowOpacity ¶

SetWindowOpacity :: proc "cdecl" (window: WindowHandle, opacity: f32) ---

SetWindowPos ¶

SetWindowPos :: proc "cdecl" (window: WindowHandle, width, height: i32) ---

SetWindowPosCallback ¶

SetWindowPosCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowPosProc) -> WindowPosProc ---

SetWindowRefreshCallback ¶

SetWindowRefreshCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowRefreshProc) -> WindowRefreshProc ---

SetWindowShouldClose ¶

SetWindowShouldClose :: proc "cdecl" (window: WindowHandle, value: b32) ---

SetWindowSize ¶

SetWindowSize :: proc "cdecl" (window: WindowHandle, width, height: i32) ---

SetWindowSizeCallback ¶

SetWindowSizeCallback :: proc "cdecl" (window: WindowHandle, cbfun: WindowSizeProc) -> WindowSizeProc ---

SetWindowSizeLimits ¶

SetWindowSizeLimits :: proc "cdecl" (window: WindowHandle, key, scancode, action, mods: i32) ---

SetWindowTitle ¶

SetWindowTitle :: proc "cdecl" (window: WindowHandle, title: cstring) ---

SetWindowUserPointer ¶

SetWindowUserPointer :: proc "cdecl" (window: WindowHandle, pointer: rawptr) ---

ShowWindow ¶

ShowWindow :: proc "cdecl" (window: WindowHandle) ---

SwapBuffers ¶

SwapBuffers :: proc "cdecl" (window: WindowHandle) ---

SwapInterval ¶

SwapInterval :: proc "cdecl" (interval: i32) ---

Terminate ¶

Terminate :: proc "cdecl" () ---

UpdateGamepadMappings ¶

UpdateGamepadMappings :: proc "cdecl" (str: cstring) -> i32 ---

VulkanSupported ¶

VulkanSupported :: proc "cdecl" () -> b32 ---

WaitEvents ¶

WaitEvents :: proc "cdecl" () ---

WaitEventsTimeout ¶

WaitEventsTimeout :: proc "cdecl" (timeout: f64) ---

WindowHint ¶

WindowHint :: proc "cdecl" (joy, event: i32) ---

WindowHintString ¶

WindowHintString :: proc "cdecl" (error: i32, description: cstring) ---

WindowShouldClose ¶

WindowShouldClose :: proc "cdecl" (window: WindowHandle) -> b32 ---

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-05 21:11:47.617422600 +0000 UTC