Commit graph

47 commits

Author SHA1 Message Date
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
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
85d7a0ca33 Huge refactor: use util::exception everywhere instead of std exceptions 2023-08-06 18:33:07 +03:00
248bd049db Setup default logging sinks to output to stdout/stderr based on log level 2023-08-06 12:56:07 +03:00
dd12ad9477 Add special handling for util::exception in various places to print stacktrace info 2023-08-06 12:53:03 +03:00
4ce09fc6b0 Rename keycode::GRAVE to BACKQUOTE 2023-07-22 00:49:42 +03:00
6ee75f8bae Support command-line arguments in application context 2023-07-21 01:30:31 +03:00
bd826103d3 Exit if application is null in sdl2 backend 2023-07-21 01:30:12 +03:00
f5f094bdc6 Support keycode events in SDL2 backend 2023-07-21 01:29:36 +03:00
2e569b2cd3 Packaging fixes 2023-07-18 20:40:53 +03:00
93d5c55c68 Add new resources system in app library 2023-07-18 15:34:46 +03:00
b910d16261 Grand app refactor: move main to sdl2 lib, make the rest of the engine independent of SDL2 2023-07-14 22:25:45 +03:00
87c612a0eb Add 'size' cursor type 2022-12-17 15:18:32 +03:00
88e48f2454 Support image-based cursors 2022-05-22 20:24:57 +03:00
bbeb05f34e Refactor SDL2 cursor manipulation 2022-04-06 17:52:32 +03:00
80315e839a Add SDL2 cursor capabilities 2022-04-06 17:24:09 +03:00
f0611657ac Generate empty source file for libraries with no sources 2021-01-18 18:10:35 +03:00
0e5759f1c6 Log about SDL2 initialization 2020-09-23 12:32:41 +03:00
89a608e35f Rename imported target sdl2 -> SDL2 & use it instead of legacy CMake variables 2020-09-21 09:13:47 +03:00
dbfd9da21c Add SDL2 initialization library & use it in app 2020-09-21 09:05:21 +03:00