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