Commit graph

70 commits

Author SHA1 Message Date
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
8aa6c8a3bb App: ui_scene updates controller ui root on scene enter/exit 2021-03-03 16:19:22 +03:00
692da35066 App: scene_base tracks whether a scene is currently active 2021-03-03 16:18:18 +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
f0611657ac Generate empty source file for libraries with no sources 2021-01-18 18:10:35 +03:00
4fa7e1f824 Logging should start with a capital letter 2020-11-19 23:51:20 +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
08c62d6e3f Add macro-based pimpl & use it everywhere 2020-10-23 17:14:54 +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
517f964ce7 Add a helper scene_base & inherit app from it 2020-09-29 19:20:38 +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