Commit graph

73 commits

Author SHA1 Message Date
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
d2d88ba7c5 Add 'psemek-' prefix to all psemek targets 2020-09-21 09:04:40 +03:00
c7dba5eef2 Add pedantic warnings to CMake & fix all warnings 2020-09-13 13:03:31 +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
21b532062b Add app::stop 2020-08-30 21:21:37 +03:00
dea7cbf32e Move on_quit handler from scene to app 2020-08-30 10:24:22 +03:00
da8d9550a7 Introduce app::scene & support changing scenes 2020-08-30 10:14:35 +03:00
91de56753b Support app constructor arguments in app::main 2020-08-30 09:39:15 +03:00
19a2055385 Use 4x multisampling by default 2020-08-30 08:52:30 +03:00
de3f9cc8cc Make sure app::on_resize gets called at least once 2020-08-30 08:51:55 +03:00
a6316d27f4 Add app::time 2020-08-30 08:49:29 +03:00
3ab93d21a7 Use ad-hoc pimpl instead of util::pimpl for app 2020-08-30 08:48:57 +03:00
f69fb7299e Add app library 2020-08-28 11:14:40 +03:00