diff options
| author | Clément Sibille <clements@lisible.xyz> | 2025-03-25 08:45:55 +0100 |
|---|---|---|
| committer | Clément Sibille <clements@lisible.xyz> | 2025-03-25 08:45:55 +0100 |
| commit | 6017db0069977ae85e698a1234f4a2b7632ee495 (patch) | |
| tree | 8d78b90484fa1f8643356689886be068ae12011f /src/platform.h | |
| parent | a33f692a0a0d3d4210044bdd93ec6d067a17c8b5 (diff) | |
Add support for swapchain recreation
Diffstat (limited to 'src/platform.h')
| -rw-r--r-- | src/platform.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform.h b/src/platform.h index 2f8bc19..fe719d3 100644 --- a/src/platform.h +++ b/src/platform.h @@ -14,6 +14,7 @@ enum vgltf_event_type { VGLTF_EVENT_QUIT, VGLTF_EVENT_KEY_DOWN, + VGLTF_EVENT_WINDOW_RESIZED, VGLTF_EVENT_UNKNOWN, }; @@ -52,10 +53,16 @@ struct vgltf_key_event { enum vgltf_key key; }; +struct vgltf_window_resized_event { + int32_t width; + int32_t height; +}; + struct vgltf_event { enum vgltf_event_type type; union { struct vgltf_key_event key; + struct vgltf_window_resized_event window_resized; }; }; |
