package vendor:glfw/bindings

⌘K
Ctrl+K
or
/

    Index

    Constants (1)
    Variables (0)

    This section is empty.

    Procedures (123)
    Procedure Groups (0)

    This section is empty.

    Types

    AllocateProc ¶

    AllocateProc :: proc "c" (size: uint, user: rawptr) -> rawptr

    Allocator ¶

    Allocator :: struct {
    	allocate:   AllocateProc,
    	reallocate: ReallocateProc,
    	deallocate: DeallocateProc,
    	user:       rawptr,
    }
    Related Procedures With Parameters

    CharModsProc ¶

    CharModsProc :: proc "c" (window: WindowHandle, codepoint: rune, mods: i32)
    Related Procedures With Parameters

    CharProc ¶

    CharProc :: proc "c" (window: WindowHandle, codepoint: rune)
    Related Procedures With Parameters

    CursorEnterProc ¶

    CursorEnterProc :: proc "c" (window: WindowHandle, entered: i32)
    Related Procedures With Parameters

    CursorHandle ¶

    CursorHandle :: distinct rawptr
    Related Procedures With Parameters
    Related Procedures With Returns

    CursorPosProc ¶

    CursorPosProc :: proc "c" (window: WindowHandle, xpos, ypos: f64)
    Related Procedures With Parameters

    DeallocateProc ¶

    DeallocateProc :: proc "c" (block: rawptr, user: rawptr)

    DropProc ¶

    DropProc :: proc "c" (window: WindowHandle, count: i32, paths: [^]cstring)
    Related Procedures With Parameters

    ErrorProc ¶

    ErrorProc :: proc "c" (error: i32, description: cstring)
    Related Procedures With Parameters

    FramebufferSizeProc ¶

    FramebufferSizeProc :: proc "c" (window: WindowHandle, width, height: i32)
    Related Procedures With Parameters

    GamepadState ¶

    GamepadState :: struct {
    	buttons: [15]u8,
    	axes:    [6]f32,
    }
    Related Procedures With Parameters

    GammaRamp ¶

    GammaRamp :: struct {
    	red:   [^]u16,
    	green: [^]u16,
    	blue:  [^]u16,
    	size:  u32,
    }
    Related Procedures With Parameters
    Related Procedures With Returns

    Image ¶

    Image :: struct {
    	width:  i32,
    	height: i32,
    	pixels: [^]u8,
    }
    Related Procedures With Parameters

    JoystickProc ¶

    JoystickProc :: proc "c" (joy, event: i32)
    Related Procedures With Parameters

    KeyProc ¶

    KeyProc :: proc "c" (window: WindowHandle, key, scancode, action, mods: i32)
    Related Procedures With Parameters

    MonitorProc ¶

    MonitorProc :: proc "c" (window: WindowHandle, event: i32)
    Related Procedures With Parameters

    MouseButtonProc ¶

    MouseButtonProc :: proc "c" (window: WindowHandle, button, action, mods: i32)
    Related Procedures With Parameters

    ReallocateProc ¶

    ReallocateProc :: proc "c" (block: rawptr, size: uint, user: rawptr) -> rawptr

    ScrollProc ¶

    ScrollProc :: proc "c" (window: WindowHandle, xoffset, yoffset: f64)
    Related Procedures With Parameters

    VidMode ¶

    VidMode :: struct {
    	width:        i32,
    	height:       i32,
    	red_bits:     i32,
    	green_bits:   i32,
    	blue_bits:    i32,
    	refresh_rate: i32,
    }
    Related Procedures With Returns

    WindowCloseProc ¶

    WindowCloseProc :: proc "c" (window: WindowHandle)
    Related Procedures With Parameters

    WindowContentScaleProc ¶

    WindowContentScaleProc :: proc "c" (window: WindowHandle, xscale, yscale: f32)
    Related Procedures With Parameters

    WindowFocusProc ¶

    WindowFocusProc :: proc "c" (window: WindowHandle, focused: i32)
    Related Procedures With Parameters

    WindowIconifyProc ¶

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

    Procedure type declarations

    Related Procedures With Parameters

    WindowMaximizeProc ¶

    WindowMaximizeProc :: proc "c" (window: WindowHandle, iconified: i32)
    Related Procedures With Parameters

    WindowPosProc ¶

    WindowPosProc :: proc "c" (window: WindowHandle, xpos, ypos: i32)
    Related Procedures With Parameters

    WindowRefreshProc ¶

    WindowRefreshProc :: proc "c" (window: WindowHandle)
    Related Procedures With Parameters

    WindowSizeProc ¶

    WindowSizeProc :: proc "c" (window: WindowHandle, width, height: i32)
    Related Procedures With Parameters

    Constants

    GLFW_SHARED ¶

    GLFW_SHARED :: #config(GLFW_SHARED, ODIN_OS != .Windows && ODIN_OS != .Darwin)

    Variables

    This section is empty.

    Procedures

    CreateCursor ¶

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

    CreateStandardCursor ¶

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

    CreateWindow ¶

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

    CreateWindowSurface ¶

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

    DefaultWindowHints ¶

    DefaultWindowHints :: proc "c" () ---

    DestroyCursor ¶

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

    DestroyWindow ¶

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

    ExtensionSupported ¶

    ExtensionSupported :: proc "c" (extension: cstring) -> i32 ---

    FocusWindow ¶

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

    GetClipboardString ¶

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

    GetCurrentContext ¶

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

    GetCursorPos ¶

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

    GetError ¶

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

    GetFramebufferSize ¶

    GetFramebufferSize :: proc "c" (window: WindowHandle, width, height: ^i32) ---

    GetGamepadName ¶

    GetGamepadName :: proc "c" (jid: i32) -> cstring ---

    GetGamepadState ¶

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

    GetGammaRamp ¶

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

    GetInputMode ¶

    GetInputMode :: proc "c" (window: WindowHandle, mode: i32) -> i32 ---

    GetInstanceProcAddress ¶

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

    GetJoystickAxes ¶

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

    GetJoystickButtons ¶

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

    GetJoystickGUID ¶

    GetJoystickGUID :: proc "c" (jid: i32) -> cstring ---

    GetJoystickHats ¶

    GetJoystickHats :: proc "c" (jid: i32, count: ^i32) -> [^]u8 ---

    GetJoystickName ¶

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

    GetJoystickUserPointer ¶

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

    GetKey ¶

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

    GetKeyName ¶

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

    GetKeyScancode ¶

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

    GetMonitorContentScale ¶

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

    GetMonitorName ¶

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

    GetMonitorPhysicalSize ¶

    GetMonitorPhysicalSize :: proc "c" (monitor: MonitorHandle, widthMM, heightMM: ^i32) ---

    GetMonitorPos ¶

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

    GetMonitorUserPointer ¶

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

    GetMonitors ¶

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

    GetMouseButton ¶

    GetMouseButton :: proc "c" (window: WindowHandle, button: i32) -> i32 ---

    GetPhysicalDevicePresentationSupport ¶

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

    GetPlatform ¶

    GetPlatform :: proc "c" () -> i32 ---

    GetPrimaryMonitor ¶

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

    GetProcAddress ¶

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

    GetRequiredInstanceExtensions ¶

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

    GetTime ¶

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

    GetTimerFrequency ¶

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

    GetTimerValue ¶

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

    GetVersion ¶

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

    GetVersionString ¶

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

    GetVideoMode ¶

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

    GetVideoModes ¶

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

    GetWindowAttrib ¶

    GetWindowAttrib :: proc "c" (window: WindowHandle, attrib: i32) -> i32 ---

    GetWindowContentScale ¶

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

    GetWindowFrameSize ¶

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

    GetWindowMonitor ¶

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

    GetWindowOpacity ¶

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

    GetWindowPos ¶

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

    GetWindowSize ¶

    GetWindowSize :: proc "c" (window: WindowHandle, width, height: ^i32) ---

    GetWindowTitle ¶

    GetWindowTitle :: proc "c" (window: WindowHandle) -> cstring ---

    GetWindowUserPointer ¶

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

    HideWindow ¶

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

    IconifyWindow ¶

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

    Init ¶

    Init :: proc "c" () -> b32 ---

    InitAllocator ¶

    InitAllocator :: proc "c" (#by_ptr allocator: Allocator) ---

    InitHint ¶

    InitHint :: proc "c" (hint: i32, value: i32) ---

    InitVulkanLoader ¶

    InitVulkanLoader :: proc "c" (loader: vulkan.ProcGetInstanceProcAddr) ---

    JoystickIsGamepad ¶

    JoystickIsGamepad :: proc "c" (jid: i32) -> b32 ---

    JoystickPresent ¶

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

    MakeContextCurrent ¶

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

    MaximizeWindow ¶

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

    PlatformSupported ¶

    PlatformSupported :: proc "c" (platform: i32) -> b32 ---

    PollEvents ¶

    PollEvents :: proc "c" () ---

    PostEmptyEvent ¶

    PostEmptyEvent :: proc "c" () ---

    RawMouseMotionSupported ¶

    RawMouseMotionSupported :: proc "c" () -> b32 ---

    RequestWindowAttention ¶

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

    RestoreWindow ¶

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

    SetCharCallback ¶

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

    SetCharModsCallback ¶

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

    SetClipboardString ¶

    SetClipboardString :: proc "c" (window: WindowHandle, str: cstring) ---

    SetCursor ¶

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

    SetCursorEnterCallback ¶

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

    SetCursorPos ¶

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

    SetCursorPosCallback ¶

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

    SetDropCallback ¶

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

    SetErrorCallback ¶

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

    SetFramebufferSizeCallback ¶

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

    SetGamma ¶

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

    SetGammaRamp ¶

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

    SetInputMode ¶

    SetInputMode :: proc "c" (window: WindowHandle, mode, value: i32) ---

    SetJoystickCallback ¶

    SetJoystickCallback :: proc "c" (cbfun: JoystickProc) -> JoystickProc ---

    SetJoystickUserPointer ¶

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

    SetKeyCallback ¶

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

    SetMonitorCallback ¶

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

    SetMonitorUserPointer ¶

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

    SetMouseButtonCallback ¶

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

    SetScrollCallback ¶

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

    SetTime ¶

    SetTime :: proc "c" (time: f64) ---

    SetWindowAspectRatio ¶

    SetWindowAspectRatio :: proc "c" (window: WindowHandle, numer, denom: i32) ---

    SetWindowAttrib ¶

    SetWindowAttrib :: proc "c" (window: WindowHandle, attrib, value: i32) ---

    SetWindowCloseCallback ¶

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

    SetWindowContentScaleCallback ¶

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

    SetWindowFocusCallback ¶

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

    SetWindowIcon ¶

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

    SetWindowIconifyCallback ¶

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

    SetWindowMaximizeCallback ¶

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

    SetWindowMonitor ¶

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

    SetWindowOpacity ¶

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

    SetWindowPos ¶

    SetWindowPos :: proc "c" (window: WindowHandle, xpos, ypos: i32) ---

    SetWindowPosCallback ¶

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

    SetWindowRefreshCallback ¶

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

    SetWindowShouldClose ¶

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

    SetWindowSize ¶

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

    SetWindowSizeCallback ¶

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

    SetWindowSizeLimits ¶

    SetWindowSizeLimits :: proc "c" (window: WindowHandle, minwidth, minheight, maxwidth, maxheight: i32) ---

    SetWindowTitle ¶

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

    SetWindowUserPointer ¶

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

    ShowWindow ¶

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

    SwapBuffers ¶

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

    SwapInterval ¶

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

    Terminate ¶

    Terminate :: proc "c" () ---

    UpdateGamepadMappings ¶

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

    VulkanSupported ¶

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

    WaitEvents ¶

    WaitEvents :: proc "c" () ---

    WaitEventsTimeout ¶

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

    WindowHint ¶

    WindowHint :: proc "c" (hint: i32, value: i32) ---

    WindowHintString ¶

    WindowHintString :: proc "c" (hint: i32, value: cstring) ---

    WindowShouldClose ¶

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

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-20 21:10:47.475439700 +0000 UTC