From 295626c3d527613c93fa63e2b1f079704600a98e Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 02:51:21 +0100 Subject: build: Finalize WebGPU integration and platform fixes Includes correct CMake configuration for GLFW native access, Objective-C++ compilation for the helper library on macOS, and applies clang-format to modified sources. --- src/platform.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/platform.cc') diff --git a/src/platform.cc b/src/platform.cc index b0ec86b..2b6af44 100644 --- a/src/platform.cc +++ b/src/platform.cc @@ -42,9 +42,13 @@ void platform_shutdown() { glfwTerminate(); } -void platform_poll() { glfwPollEvents(); } +void platform_poll() { + glfwPollEvents(); +} -bool platform_should_close() { return glfwWindowShouldClose(window); } +bool platform_should_close() { + return glfwWindowShouldClose(window); +} void platform_toggle_fullscreen() { g_is_fullscreen = !g_is_fullscreen; @@ -62,9 +66,13 @@ void platform_toggle_fullscreen() { } } -GLFWwindow *platform_get_window() { return window; } +GLFWwindow *platform_get_window() { + return window; +} -double platform_get_time() { return glfwGetTime(); } +double platform_get_time() { + return glfwGetTime(); +} WGPUSurface platform_create_wgpu_surface(WGPUInstance instance) { return glfwCreateWindowWGPUSurface(instance, window); -- cgit v1.2.3