Sfoglia il codice sorgente

Use b32 for GLFW functions that return GLFW_TRUE or GLFW_FALSE

Sven Strothoff 2 mesi fa
parent
commit
7c69cb399a
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      vendor/glfw/bindings/bindings.odin

+ 4 - 4
vendor/glfw/bindings/bindings.odin

@@ -163,9 +163,9 @@ foreign glfw {
 	SetJoystickUserPointer :: proc(jid: c.int, pointer: rawptr) ---
 	SetJoystickUserPointer :: proc(jid: c.int, pointer: rawptr) ---
 	GetJoystickUserPointer :: proc(jid: c.int) -> rawptr ---
 	GetJoystickUserPointer :: proc(jid: c.int) -> rawptr ---
 	JoystickIsGamepad      :: proc(jid: c.int) -> b32 ---
 	JoystickIsGamepad      :: proc(jid: c.int) -> b32 ---
-	UpdateGamepadMappings  :: proc(str: cstring) -> c.int ---
+	UpdateGamepadMappings  :: proc(str: cstring) -> b32 ---
 	GetGamepadName         :: proc(jid: c.int) -> cstring ---
 	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) ---
 	SetClipboardString :: proc(window: WindowHandle, str: cstring) ---
 	
 	
@@ -177,12 +177,12 @@ foreign glfw {
 	MakeContextCurrent :: proc(window: WindowHandle) ---
 	MakeContextCurrent :: proc(window: WindowHandle) ---
 	GetCurrentContext  :: proc() -> WindowHandle ---
 	GetCurrentContext  :: proc() -> WindowHandle ---
 	GetProcAddress     :: proc(name: cstring) -> rawptr ---
 	GetProcAddress     :: proc(name: cstring) -> rawptr ---
-	ExtensionSupported :: proc(extension: cstring) -> c.int ---
+	ExtensionSupported :: proc(extension: cstring) -> b32 ---
 
 
 	VulkanSupported                      :: proc() -> b32 ---
 	VulkanSupported                      :: proc() -> b32 ---
 	GetRequiredInstanceExtensions        :: proc(count: ^u32) -> [^]cstring ---
 	GetRequiredInstanceExtensions        :: proc(count: ^u32) -> [^]cstring ---
 	GetInstanceProcAddress               :: proc(instance: vk.Instance, procname: cstring) -> rawptr ---
 	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 ---
 	CreateWindowSurface                  :: proc(instance: vk.Instance, window: WindowHandle, allocator: ^vk.AllocationCallbacks, surface: ^vk.SurfaceKHR) -> vk.Result ---
 	
 	
 	SetWindowIconifyCallback      :: proc(window: WindowHandle, cbfun: WindowIconifyProc)      -> WindowIconifyProc ---
 	SetWindowIconifyCallback      :: proc(window: WindowHandle, cbfun: WindowIconifyProc)      -> WindowIconifyProc ---