GLFW binding fixes

This commit is contained in:
flysand7
2023-10-24 10:23:38 +11:00
parent 18776aa6b9
commit 27cbd0d931
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ when ODIN_OS == .Windows {
/*** Functions ***/
@(default_calling_convention="c", link_prefix="glfw")
foreign glfw {
Init :: proc() -> c.int ---
Init :: proc() -> bool ---
Terminate :: proc() ---
InitHint :: proc(hint, value: c.int) ---
+1 -1
View File
@@ -41,7 +41,7 @@ WindowMaximizeProc :: #type proc "c" (window: WindowHandle, iconified: c.int
WindowContentScaleProc :: #type proc "c" (window: WindowHandle, xscale, yscale: f32)
FramebufferSizeProc :: #type proc "c" (window: WindowHandle, width, height: c.int)
DropProc :: #type proc "c" (window: WindowHandle, count: c.int, paths: [^]cstring)
MonitorProc :: #type proc "c" (window: WindowHandle)
MonitorProc :: #type proc "c" (window: WindowHandle, event: c.int)
KeyProc :: #type proc "c" (window: WindowHandle, key, scancode, action, mods: c.int)
MouseButtonProc :: #type proc "c" (window: WindowHandle, button, action, mods: c.int)