mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
WindowShouldClose should return a bool
This commit is contained in:
Vendored
+4
-2
@@ -52,7 +52,9 @@ DestroyWindow :: glfw.DestroyWindow
|
||||
WindowHint :: glfw.WindowHint
|
||||
DefaultWindowHints :: glfw.DefaultWindowHints
|
||||
WindowHintString :: glfw.WindowHintString
|
||||
WindowShouldClose :: glfw.WindowShouldClose
|
||||
WindowShouldClose :: proc "c" (window: WindowHandle) -> bool {
|
||||
return glfw.WindowShouldClose(window) != 0
|
||||
}
|
||||
|
||||
SwapInterval :: glfw.SwapInterval
|
||||
SwapBuffers :: glfw.SwapBuffers
|
||||
@@ -228,4 +230,4 @@ SetErrorCallback :: glfw.SetErrorCallback
|
||||
// Used by vendor:OpenGL
|
||||
gl_set_proc_address :: proc(p: rawptr, name: cstring) {
|
||||
(^rawptr)(p)^ = GetProcAddress(name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user