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