From 302d883f34864bc66a5e04532ae27d7e89fd94e8 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 09:31:13 +0100 Subject: 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. --- src/platform.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/platform.h') 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 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 -- cgit v1.2.3