diff options
Diffstat (limited to 'src/platform.h')
| -rw-r--r-- | src/platform.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/platform.h b/src/platform.h index 2146e10..fa6944a 100644 --- a/src/platform.h +++ b/src/platform.h @@ -1,4 +1,9 @@ +// This file is part of the 64k demo project. +// It defines the platform abstraction layer for windowing and input. +// Provides a consistent interface for GLFW-based operations. + #pragma once + #include <webgpu.h> struct GLFWwindow; @@ -7,9 +12,10 @@ void platform_init_window(bool fullscreen); void platform_shutdown(); void platform_poll(); bool platform_should_close(); + void platform_toggle_fullscreen(); + GLFWwindow *platform_get_window(); double platform_get_time(); -// Creates a WebGPU surface for the current platform window. -WGPUSurface platform_create_wgpu_surface(WGPUInstance instance); +WGPUSurface platform_create_wgpu_surface(WGPUInstance instance);
\ No newline at end of file |
