diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-28 09:31:13 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-28 09:31:13 +0100 |
| commit | 302d883f34864bc66a5e04532ae27d7e89fd94e8 (patch) | |
| tree | 8f813865d5dc5b70ee8bf9ee4866546116859825 /src/platform.h | |
| parent | f804dcb9740540b3735628ebf8c006235cc56fca (diff) | |
style: Add 3-line descriptive headers to all source files
This commit applies a new project-wide rule that every source file must begin with a concise 3-line comment header describing its purpose.
- Updated CONTRIBUTING.md with the new rule.
- Applied headers to all .cc and .h files in src/ and tools/.
- Fixed various minor compilation errors and missing includes discovered during the header update process.
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 |
