Commit graph

90 commits

Author SHA1 Message Date
b1255f7a14 Expose wgpu instance in app context 2025-08-09 13:31:23 +03:00
24f3df6f35 Add app::apply(event_state, text_input_event) 2025-05-20 17:23:23 +03:00
944d1374a5 Fix handling text input events in app::scene_application 2025-04-07 11:09:01 +03:00
195a31fa1c Add text input events in SDL2 backend 2025-02-24 13:02:48 +03:00
97c9d79a5a Add default values to wgpu-related fields in application::options 2025-02-16 18:43:30 +03:00
3940766f7d Compilation fixes related to ui_legacy lib 2025-01-21 14:10:35 +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
4e9a551452 Better touch events support 2024-08-22 18:36:37 +03:00
3a24090607 Remove app -> ui dependency 2024-08-13 14:51:12 +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
325dc01757 Separate show_mouse and relative_mouse_mode 2024-07-20 02:17:22 +03:00
22a57f91db Huge refactor: use util::hash_table instead of std::unordered everywhere 2024-06-03 14:36:39 +03:00
448b6dc9fa Add relative mouse movement data in app event 2024-03-12 20:29:51 +03:00
d48f9c086f Make app::scene_application call scene->on_exit when stopped 2024-03-03 14:44:01 +03:00
e2fdb777de WebGPU support wip 2023-12-30 16:50:44 +03:00
a8c89f84bd Support enabling windowed mode 2023-12-03 18:12:03 +03:00
4ce09fc6b0 Rename keycode::GRAVE to BACKQUOTE 2023-07-22 00:49:42 +03:00
7f5d50787d Make default_application_factory support a custom factory callback 2023-07-21 01:30:57 +03:00
6ee75f8bae Support command-line arguments in application context 2023-07-21 01:30:31 +03:00
a4a07c0d29 Add keycode enum 2023-07-21 01:29:19 +03:00
93d5c55c68 Add new resources system in app library 2023-07-18 15:34:46 +03:00
e37bdf6bd2 Add touch events 2023-07-18 15:24:20 +03:00
a4e7b318ed Make application:🏭:options return a value instead of a reference 2023-07-18 15:24:02 +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
ffe7afff1f Move broken ui_scene_legacy to ui_legacy library 2023-07-14 20:54:28 +03:00
b21332b9a4 Update app::ui_scene to use the legacy ui library 2023-04-18 15:28:10 +03:00
dd38061d1c Send initial scene resize after the update and before the rendering 2023-01-05 16:42:58 +03:00
9f045c18a8 Remove app::on_quit(), use app::stop() instead 2022-12-13 22:40:22 +03:00
968d79df7b Fix on_scene_exit called multiple times 2022-09-20 15:44:41 +03:00
b05e209c6d Set stdio log level to info in deploy mode 2022-08-14 23:17:53 +03:00
ccb5570892 Add ui::text_input event 2022-04-01 17:42:42 +03:00
6db913756b Add scene::on_text_input event 2022-04-01 17:40:22 +03:00
6e0579e548 Make sure text input is turned off at app start 2022-04-01 17:39:53 +03:00
123783c80a Support creating an app with fixed resolution & add a list of common resolutions 2022-03-02 13:55:42 +03:00
a3aca66705 Make scene manager store shared pointers to scene to simplify removing scenes 2022-02-19 12:36:15 +03:00
7a3dbf685a Log startup time 2022-02-17 16:38:11 +03:00
fb2acde48f Change initial window size to 1024x768 & log window resize events 2022-02-17 16:37:30 +03:00
323c5a714f Support setting max events per frame in ui_scene derived classes 2022-02-05 12:42:45 +03:00
d653cb1b8b Restrict max events per frame in UI event loop 2022-02-05 12:38:06 +03:00
73820d4844 Support custom sinks in logging 2022-01-21 12:09:10 +03:00
35de0993d2 Support getting current vsync status in app 2021-10-31 13:18:32 +03:00
d1dc84bdde Require 8-bit stencil buffer in app 2021-10-15 21:36:32 +03:00
585fff7683 Add app:scene_manager interface 2021-07-02 11:35:08 +03:00
38f704c3ed Add app::options structure with creation options & add highdpi support 2021-05-28 12:14:41 +03:00
fb992e20ea ui_scene::on_key_up fix 2021-04-25 22:52:25 +03:00
72a8734853 Make app::main automatically add an stdout sink 2021-04-19 21:02:38 +03:00
2b2b2be560 Support ui animations 2021-03-05 20:09:02 +03:00
4ba85c9e79 App uses a scene stack & owns scenes 2021-03-03 18:03:40 +03:00
908b6cc5c9 Active scenes can access parent app 2021-03-03 17:27:31 +03:00