mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
The better option
This commit is contained in:
Vendored
+1
-1
@@ -46,7 +46,7 @@ foreign glfw {
|
|||||||
WindowHint :: proc(hint, value: c.int) ---
|
WindowHint :: proc(hint, value: c.int) ---
|
||||||
DefaultWindowHints :: proc() ---
|
DefaultWindowHints :: proc() ---
|
||||||
WindowHintString :: proc(hint: c.int, value: cstring) ---
|
WindowHintString :: proc(hint: c.int, value: cstring) ---
|
||||||
WindowShouldClose :: proc(window: WindowHandle) -> c.int ---
|
WindowShouldClose :: proc(window: WindowHandle) -> b32 ---
|
||||||
|
|
||||||
SwapInterval :: proc(interval: c.int) ---
|
SwapInterval :: proc(interval: c.int) ---
|
||||||
SwapBuffers :: proc(window: WindowHandle) ---
|
SwapBuffers :: proc(window: WindowHandle) ---
|
||||||
|
|||||||
Vendored
+1
-3
@@ -52,9 +52,7 @@ DestroyWindow :: glfw.DestroyWindow
|
|||||||
WindowHint :: glfw.WindowHint
|
WindowHint :: glfw.WindowHint
|
||||||
DefaultWindowHints :: glfw.DefaultWindowHints
|
DefaultWindowHints :: glfw.DefaultWindowHints
|
||||||
WindowHintString :: glfw.WindowHintString
|
WindowHintString :: glfw.WindowHintString
|
||||||
WindowShouldClose :: proc "c" (window: WindowHandle) -> bool {
|
WindowShouldClose :: glfw.WindowShouldClose
|
||||||
return glfw.WindowShouldClose(window) != 0
|
|
||||||
}
|
|
||||||
|
|
||||||
SwapInterval :: glfw.SwapInterval
|
SwapInterval :: glfw.SwapInterval
|
||||||
SwapBuffers :: glfw.SwapBuffers
|
SwapBuffers :: glfw.SwapBuffers
|
||||||
|
|||||||
Reference in New Issue
Block a user