mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
GLFW binding fixes
This commit is contained in:
Vendored
+1
-1
@@ -39,7 +39,7 @@ when ODIN_OS == .Windows {
|
|||||||
/*** Functions ***/
|
/*** Functions ***/
|
||||||
@(default_calling_convention="c", link_prefix="glfw")
|
@(default_calling_convention="c", link_prefix="glfw")
|
||||||
foreign glfw {
|
foreign glfw {
|
||||||
Init :: proc() -> c.int ---
|
Init :: proc() -> bool ---
|
||||||
Terminate :: proc() ---
|
Terminate :: proc() ---
|
||||||
|
|
||||||
InitHint :: proc(hint, value: c.int) ---
|
InitHint :: proc(hint, value: c.int) ---
|
||||||
|
|||||||
Vendored
+1
-1
@@ -41,7 +41,7 @@ WindowMaximizeProc :: #type proc "c" (window: WindowHandle, iconified: c.int
|
|||||||
WindowContentScaleProc :: #type proc "c" (window: WindowHandle, xscale, yscale: f32)
|
WindowContentScaleProc :: #type proc "c" (window: WindowHandle, xscale, yscale: f32)
|
||||||
FramebufferSizeProc :: #type proc "c" (window: WindowHandle, width, height: c.int)
|
FramebufferSizeProc :: #type proc "c" (window: WindowHandle, width, height: c.int)
|
||||||
DropProc :: #type proc "c" (window: WindowHandle, count: c.int, paths: [^]cstring)
|
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)
|
KeyProc :: #type proc "c" (window: WindowHandle, key, scancode, action, mods: c.int)
|
||||||
MouseButtonProc :: #type proc "c" (window: WindowHandle, button, action, mods: c.int)
|
MouseButtonProc :: #type proc "c" (window: WindowHandle, button, action, mods: c.int)
|
||||||
|
|||||||
Vendored
+13
-1
@@ -49,7 +49,19 @@ SetGammaRamp :: glfw.SetGammaRamp
|
|||||||
CreateWindow :: glfw.CreateWindow
|
CreateWindow :: glfw.CreateWindow
|
||||||
DestroyWindow :: glfw.DestroyWindow
|
DestroyWindow :: glfw.DestroyWindow
|
||||||
|
|
||||||
WindowHint :: glfw.WindowHint
|
WindowHint_int :: proc "contextless" (hint: c.int, value: c.int) {
|
||||||
|
glfw.WindowHint(hint, value)
|
||||||
|
}
|
||||||
|
|
||||||
|
WindowHint_bool :: proc "contextless" (hint: c.int, value: bool) {
|
||||||
|
glfw.WindowHint(hint, cast(c.int) value)
|
||||||
|
}
|
||||||
|
|
||||||
|
WindowHint :: proc {
|
||||||
|
WindowHint_int,
|
||||||
|
WindowHint_bool,
|
||||||
|
}
|
||||||
|
|
||||||
DefaultWindowHints :: glfw.DefaultWindowHints
|
DefaultWindowHints :: glfw.DefaultWindowHints
|
||||||
WindowHintString :: glfw.WindowHintString
|
WindowHintString :: glfw.WindowHintString
|
||||||
WindowShouldClose :: glfw.WindowShouldClose
|
WindowShouldClose :: glfw.WindowShouldClose
|
||||||
|
|||||||
Reference in New Issue
Block a user