WindowShouldClose should return a bool

This commit is contained in:
Prokop Randáček
2021-10-24 12:52:54 +02:00
committed by GitHub
parent 06f4762144
commit cac8582de1
+4 -2
View File
@@ -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)
}
}