Merge pull request #1243 from ProkopRandacek/patch-1

glfw.WindowShouldClose should return a bool
This commit is contained in:
gingerBill
2021-10-25 19:41:58 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ foreign glfw {
WindowHint :: proc(hint, value: c.int) ---
DefaultWindowHints :: proc() ---
WindowHintString :: proc(hint: c.int, value: cstring) ---
WindowShouldClose :: proc(window: WindowHandle) -> c.int ---
WindowShouldClose :: proc(window: WindowHandle) -> b32 ---
SwapInterval :: proc(interval: c.int) ---
SwapBuffers :: proc(window: WindowHandle) ---

View File

@@ -228,4 +228,4 @@ SetErrorCallback :: glfw.SetErrorCallback
// Used by vendor:OpenGL
gl_set_proc_address :: proc(p: rawptr, name: cstring) {
(^rawptr)(p)^ = GetProcAddress(name)
}
}