blob: 31505ab1edb3a6ec7bd1414a1c709e8a5ddac4e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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;
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();
WGPUSurface platform_create_wgpu_surface(WGPUInstance instance);
|