Commit graph

68 commits

Author SHA1 Message Date
28126518d5 Add shown/hidden and minimized/maximized/restored window events
All checks were successful
Run tests / Run tests (push) Successful in 7m6s
2026-08-19 23:18:11 +03:00
d4abc645f4 Don't apply sRGB default framebuffer option in web builds
All checks were successful
Run tests / Run tests (push) Successful in 7m6s
2026-07-24 02:34:00 +03:00
0236fc97b7 Add srgb default framebuffer support in application options (implemented in sdl2 non-web only) 2026-07-21 13:20:10 +03:00
0ecc33cc29 Log SDL2 window size at window creation 2026-07-20 15:24:15 +03:00
0d54fa7f03 Fix sdl2 CMakeLists.txt on non-apple platforms
All checks were successful
Run tests / Run tests (push) Successful in 7m37s
2026-07-09 20:59:48 +03:00
6ea10520b5 Change resource & storage access logging 2026-07-06 22:39:04 +03:00
55d18aaa33 Add app::storage path and set it to WASMFS-mounted directory on web builds 2026-07-06 22:38:38 +03:00
8587ba6bc0 Update to emscripten 6 and pre-build sdl2 in web packaging image 2026-07-06 22:37:16 +03:00
75471c6054 Don't link SDL2 on web (break when using multithreaded emsdk build) 2026-07-06 22:33:21 +03:00
1195bd26d5 Change resources path in web builds 2026-07-05 18:38:47 +03:00
b989eba66d Implement resource packaging for web builds
All checks were successful
Run tests / Run tests (push) Successful in 8m28s
2026-07-04 17:33:28 +03:00
ce019229bb Use larger audio buffer on web
All checks were successful
Run tests / Run tests (push) Successful in 10m37s
2026-07-04 17:01:04 +03:00
151afec7f0 Fix app context lifetime in emscripten
All checks were successful
Run tests / Run tests (push) Successful in 7m49s
2026-07-04 16:31:34 +03:00
abf45f3dcb Fix handling key events (this also intercepts browser shortcuts, sadly) 2026-07-04 16:30:44 +03:00
7dd55d94a9 Add template html for Emscripten builds
All checks were successful
Run tests / Run tests (push) Successful in 8m11s
2026-07-04 00:46:36 +03:00
8adb68630e Change mainloop for web builds 2026-07-03 14:28:26 +02:00
b2d34fd602 Disable GL context attributes on web 2026-07-03 14:28:26 +02:00
cb4c20f071 Set up build/packaging infra for web builds
All checks were successful
Run tests / test (push) Successful in 4s
Reviewed-on: #1
2026-07-03 08:40:27 +00:00
77d359fa52 Implement sdl2+wgpu backend for macos+metal 2026-06-30 23:47:25 +03:00
f562a82fb5 Merge remote-tracking branch 'remotes/origin/master' into web 2026-06-28 20:01:37 +02:00
e23455356d Support float32 output in SDL2 audio backend (with int16 fallback) 2025-10-23 18:40:30 +03:00
8d25721d35 Don't call most SDL_GL_xxx functions when using WebGPU API 2025-09-16 20:45:12 +03:00
b1255f7a14 Expose wgpu instance in app context 2025-08-09 13:31:23 +03:00
46f672599d Upgrade to wgpu-native version 25.0.2.1 2025-08-08 23:20:44 +03:00
0034e6a9f1 Disable text input at application start in SDL2 backend 2025-04-07 11:10:12 +03:00
4dc8b6a183 Use _WIN32 macro to detect Windows (instead of other macro variants) 2025-03-04 20:00:03 +03:00
195a31fa1c Add text input events in SDL2 backend 2025-02-24 13:02:48 +03:00
805826c160 Set up packaging for web build 2025-02-03 12:52:18 +01:00
c59b28e13f Rename 'geom' library to 'math' 2024-12-10 20:22:59 +03:00
fbb032fe63 Support native limits in wgpu device creation 2024-11-14 13:48:40 +03:00
a4d666096e Remove library-specific graphics api defines in favor of global PSEMEK_GRAPHICS_API_XXX 2024-08-02 20:39:52 +03:00
c1c9e304da Add debug code to fix resolution to 1024x576 2024-08-02 16:55:47 +03:00
0cc04cdbb6 Don't log showing/hiding cursor 2024-08-02 12:02:32 +03:00
7151fef7a8 Redesign psemek::sdl2 cursor api 2024-07-30 23:51:49 +03:00
325dc01757 Separate show_mouse and relative_mouse_mode 2024-07-20 02:17:22 +03:00
cae25f4719 Use wgpu instance extras to select the backend 2024-05-18 21:41:09 +03:00
b436e7b2d8 Log used wgpu-native version 2024-05-18 21:19:08 +03:00
6581143837 Setup WebGPU logging 2024-05-18 21:13:43 +03:00
448b6dc9fa Add relative mouse movement data in app event 2024-03-12 20:29:51 +03:00
c7108a0e39 Fix building with OpenGL backend 2024-03-03 02:16:55 +03:00
0555243990 Log WebGPU backend when initializing 2023-12-30 20:08:53 +03:00
e2fdb777de WebGPU support wip 2023-12-30 16:50:44 +03:00
8038da6987 More window state logging in SDL2 backend 2023-12-03 18:28:54 +03:00
a8c89f84bd Support enabling windowed mode 2023-12-03 18:12:03 +03:00
323b264b41 Compilation fix 2023-11-03 12:59:37 +03:00
e31132face Warn when the audio callback takes more than it should 2023-11-03 12:02:08 +03:00
721c88fbee Change the way discrete GPU forcing works 2023-10-25 16:50:08 +03:00
eddda6d787 Log window resize events in sdl2 backend 2023-10-24 15:21:13 +03:00
f6377045c9 Add red color to stderr logging 2023-08-06 19:00:34 +03:00
04243db779 Synchronize stdout & stderr for logging 2023-08-06 18:44:35 +03:00