summaryrefslogtreecommitdiff
path: root/src/platform.h
blob: fa6944a5e5453113290a03aa58a4f4ac92d33a20 (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);