Commit graph

58 commits

Author SHA1 Message Date
944d1374a5 Fix handling text input events in app::scene_application 2025-04-07 11:09:01 +03:00
4e9a551452 Better touch events support 2024-08-22 18:36:37 +03:00
d48f9c086f Make app::scene_application call scene->on_exit when stopped 2024-03-03 14:44:01 +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
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
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
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
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
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
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
8aa6c8a3bb App: ui_scene updates controller ui root on scene enter/exit 2021-03-03 16:19:22 +03:00
a7f259352c App sends on_scene_exit at the end of main loop 2021-03-03 16:17:50 +03:00
670ac8beda Make ui_scene update event loop 2021-03-03 13:05:03 +03:00
a362dafee3 Add app::ui_scene helper base class 2021-03-03 12:24:45 +03:00
0c45409dfe App bugfix: event handler can change while handling events 2021-02-19 10:43:07 +03:00
c714d6b73a Store width & height in scene_base 2021-02-17 12:43:44 +03:00
5e7aa7601d Pimpl declaration macros now define a make_pimpl(...) static helper function 2021-01-23 10:42:14 +03:00
1bb5f6977f Rename scene::render to scene::present 2020-11-02 17:42:20 +03:00
fe5cd6510c Use the new OpenGL Loader Generator for the gl loader 2020-10-27 23:14:12 +03:00
bb744fa9c9 Don't show app window until run 2020-10-08 10:46:44 +03:00
fed4da3213 Support setting vsync in app::app 2020-10-03 13:10:09 +03:00
b47a95a158 Store window size in base app 2020-10-02 19:19:19 +03:00
9cf5a88afd Support relative mouse mode 2020-09-27 20:43:17 +03:00
f7c2d5d554 Bugfix: call on_scene_enter only once 2020-09-25 13:43:34 +03:00
3432b9b476 Show OpenGL vendor & renderer in log 2020-09-22 19:51:12 +03:00
dbfd9da21c Add SDL2 initialization library & use it in app 2020-09-21 09:05:21 +03:00
15695973df Rename scene::draw to scene::render 2020-09-13 11:14:22 +03:00
835e0eab70 Turn off multisampling by default 2020-09-13 11:14:07 +03:00
c490d5307e Turn off multisampling by default 2020-09-13 11:12:19 +03:00
e97812dcaf Add on_scene_enter & on_scene_exit 2020-09-13 11:11:58 +03:00
29827743f6 Add app::impl::get_scene() 2020-09-13 11:11:08 +03:00
695da47ade Fix scene resize if scene changed when processing events 2020-08-31 09:47:04 +03:00
ac505229ae Use scene for draw & update calls instead of app 2020-08-30 21:22:12 +03:00
3dd8f3db61 Explicitly request 24-bit depth buffer 2020-08-30 21:21:54 +03:00