mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 00:28:49 +00:00
glfw: update from 3.3.8 to 3.4
This commit is contained in:
Vendored
+22
-7
@@ -21,14 +21,21 @@ when ODIN_OS == .Windows {
|
||||
"system:shell32.lib",
|
||||
}
|
||||
}
|
||||
} else when ODIN_OS == .Linux {
|
||||
foreign import glfw "system:glfw"
|
||||
} else when ODIN_OS == .Darwin {
|
||||
foreign import glfw {
|
||||
"../lib/darwin/libglfw3.a",
|
||||
"system:Cocoa.framework",
|
||||
"system:IOKit.framework",
|
||||
"system:OpenGL.framework",
|
||||
when GLFW_SHARED {
|
||||
foreign import glfw {
|
||||
"system:glfw",
|
||||
"system:Cocoa.framework",
|
||||
"system:IOKit.framework",
|
||||
"system:OpenGL.framework",
|
||||
}
|
||||
} else {
|
||||
foreign import glfw {
|
||||
"../lib/darwin/libglfw3.a",
|
||||
"system:Cocoa.framework",
|
||||
"system:IOKit.framework",
|
||||
"system:OpenGL.framework",
|
||||
}
|
||||
}
|
||||
} else {
|
||||
foreign import glfw "system:glfw"
|
||||
@@ -44,6 +51,10 @@ foreign glfw {
|
||||
|
||||
InitHint :: proc(hint, value: c.int) ---
|
||||
|
||||
InitAllocator :: proc(#by_ptr allocator: Allocator) ---
|
||||
|
||||
InitVulkanLoader :: proc(loader: vk.ProcGetInstanceProcAddr) ---
|
||||
|
||||
GetVersion :: proc(major, minor, rev: ^c.int) ---
|
||||
GetError :: proc(description: ^cstring) -> c.int ---
|
||||
|
||||
@@ -94,6 +105,7 @@ foreign glfw {
|
||||
GetKey :: proc(window: WindowHandle, key: c.int) -> c.int ---
|
||||
GetKeyName :: proc(key, scancode: c.int) -> cstring ---
|
||||
SetWindowShouldClose :: proc(window: WindowHandle, value: b32) ---
|
||||
GetWindowTitle :: proc(window: WindowHandle) -> cstring ---
|
||||
JoystickPresent :: proc(joy: c.int) -> b32 ---
|
||||
GetJoystickName :: proc(joy: c.int) -> cstring ---
|
||||
GetKeyScancode :: proc(key: c.int) -> c.int ---
|
||||
@@ -184,5 +196,8 @@ foreign glfw {
|
||||
SetJoystickCallback :: proc(cbfun: JoystickProc) -> JoystickProc ---
|
||||
|
||||
SetErrorCallback :: proc(cbfun: ErrorProc) -> ErrorProc ---
|
||||
|
||||
GetPlatform :: proc() -> c.int ---
|
||||
PlatformSupported :: proc(platform: c.int) -> b32 ---
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user