WindowShouldClose should return a bool
This commit is contained in:
1 parent
06f4762144
commit
cac8582de1
1 file changed
+3
-1
Vendored
+3
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user