blob: 38a05689ce6d8e0bf579e42f70ab24934997b29f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 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>
// Forward declare GLFWwindow to avoid including the full header here.
struct GLFWwindow;
void platform_init_window(bool fullscreen, int* width_ptr, int* height_ptr);
void platform_shutdown();
void platform_poll();
bool platform_should_close();
GLFWwindow* platform_get_window();
double platform_get_time();
// Add dimension getters
int platform_get_width();
int platform_get_height();
float platform_get_aspect_ratio();
WGPUSurface platform_create_wgpu_surface(WGPUInstance instance);
|