aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2025-05-26 20:19:46 +0200
committerGitHub <noreply@github.com>2025-05-26 20:19:46 +0200
commitf1da10469eb8b43dcf291947a4a9f93569c4ee0f (patch)
tree1a39e952fe9129de1caf31dfcee8b11542a67df1 /vendor
parent36a8e81e4d2b6cb59ad4fc8498d37c7a42de1b56 (diff)
parent7c69cb399a3e56ccbcdda4377ac60add508f93f4 (diff)
Merge pull request #5212 from sven-strothoff/glfw-bool-returns
Use b32 for GLFW functions that return GLFW_TRUE or GLFW_FALSE
Diffstat (limited to 'vendor')
-rw-r--r--vendor/glfw/bindings/bindings.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/glfw/bindings/bindings.odin b/vendor/glfw/bindings/bindings.odin
index 75cdab4cd..abf6c2150 100644
--- a/vendor/glfw/bindings/bindings.odin
+++ b/vendor/glfw/bindings/bindings.odin
@@ -163,9 +163,9 @@ foreign glfw {
SetJoystickUserPointer :: proc(jid: c.int, pointer: rawptr) ---
GetJoystickUserPointer :: proc(jid: c.int) -> rawptr ---
JoystickIsGamepad :: proc(jid: c.int) -> b32 ---
- UpdateGamepadMappings :: proc(str: cstring) -> c.int ---
+ UpdateGamepadMappings :: proc(str: cstring) -> b32 ---
GetGamepadName :: proc(jid: c.int) -> cstring ---
- GetGamepadState :: proc(jid: c.int, state: ^GamepadState) -> c.int ---
+ GetGamepadState :: proc(jid: c.int, state: ^GamepadState) -> b32 ---
SetClipboardString :: proc(window: WindowHandle, str: cstring) ---
@@ -177,12 +177,12 @@ foreign glfw {
MakeContextCurrent :: proc(window: WindowHandle) ---
GetCurrentContext :: proc() -> WindowHandle ---
GetProcAddress :: proc(name: cstring) -> rawptr ---
- ExtensionSupported :: proc(extension: cstring) -> c.int ---
+ ExtensionSupported :: proc(extension: cstring) -> b32 ---
VulkanSupported :: proc() -> b32 ---
GetRequiredInstanceExtensions :: proc(count: ^u32) -> [^]cstring ---
GetInstanceProcAddress :: proc(instance: vk.Instance, procname: cstring) -> rawptr ---
- GetPhysicalDevicePresentationSupport :: proc(instance: vk.Instance, device: vk.PhysicalDevice, queuefamily: u32) -> c.int ---
+ GetPhysicalDevicePresentationSupport :: proc(instance: vk.Instance, device: vk.PhysicalDevice, queuefamily: u32) -> b32 ---
CreateWindowSurface :: proc(instance: vk.Instance, window: WindowHandle, allocator: ^vk.AllocationCallbacks, surface: ^vk.SurfaceKHR) -> vk.Result ---
SetWindowIconifyCallback :: proc(window: WindowHandle, cbfun: WindowIconifyProc) -> WindowIconifyProc ---