Commit graph

145 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
d93e1a1aca
imgui: scale the whole UI by factor from configuration 2019-04-07 23:26:54 +02:00
Sebastian Krzyszkowiak
9706f61116
don't abort when there's no loading screen available 2019-03-30 03:34:55 +01:00
Sebastian Krzyszkowiak
44bee57f55
fix an endless loop on platforms where "char" is unsigned by default 2019-03-30 00:26:21 +01:00
Sebastian Krzyszkowiak
deb38e778c
don't fail on missing icon file 2019-03-29 20:54:14 +01:00
Sebastian Krzyszkowiak
993e9884e6
adjust to clang-tidy 8.0 2019-03-29 03:24:36 +01:00
Sebastian Krzyszkowiak
d54b311a3c
fix a case where SetupViewport wasn't called when it should after a display resize 2019-03-28 16:58:15 +01:00
Sebastian Krzyszkowiak
a309b8cb2b
support a command line switch "--debug" (or "-d") to enable debug mode 2019-03-28 15:33:21 +01:00
Sebastian Krzyszkowiak
6d7007b39e
don't rely on the game name string pointer to be valid for a whole lifetime 2019-03-28 15:25:37 +01:00
Sebastian Krzyszkowiak
52e128ed28
make sure to clear the screen completely on initial flips 2019-03-12 15:16:50 +01:00
Sebastian Krzyszkowiak
f375b6f0b1
use 48kHz as a default audio sample rate 2019-03-05 03:48:39 +01:00
Sebastian Krzyszkowiak
5a6e212de1
make sure to redraw the gamestates after a resize
Also affects compositor toggling
2019-03-05 03:48:11 +01:00
Sebastian Krzyszkowiak
ae9cf19778
utils: Push/PopTransform functions for easier transforming 2019-02-26 18:14:19 +01:00
Sebastian Krzyszkowiak
d05e683171
add a hack for window size correction at launch 2019-02-24 04:20:36 +01:00
Sebastian Krzyszkowiak
c80a3c5717
report Allegro version and better format the OpenGL version 2019-02-23 13:36:27 +01:00
Sebastian Krzyszkowiak
0ba9c7bbae
move first al_flip_display() way earlier 2019-02-13 23:00:33 +01:00
Sebastian Krzyszkowiak
d9dd73bfc8
make sure shaders are loaded in-between Load and PostLoad calls + call PostLoad for loading 2019-02-13 22:59:11 +01:00
Sebastian Krzyszkowiak
886034e596
use ALLEGRO_NO_PRESERVE_TEXTURE on SDL2
seems there's no reason not to; it even fixes some stuff
2019-02-13 22:54:49 +01:00
Sebastian Krzyszkowiak
26a32fd083
destroy and recreate voice on suspend and resume 2019-02-07 04:11:40 +01:00
Sebastian Krzyszkowiak
10164293ba
add ability to enable multisampling via init params 2019-02-01 03:37:15 +01:00
Sebastian Krzyszkowiak
6211dcbf57
precache glyphs in fonts 2019-01-13 18:19:44 +01:00
Sebastian Krzyszkowiak
9006427278
clean up a duplicated framebuffer of the loading gamestate 2019-01-11 12:28:08 +01:00
Sebastian Krzyszkowiak
0d32d00890
emscripten: detach/attach the voice during loading
Should prevent audio artifacts when the browser is busy...

...when Emscripten gets it fixed, that is :P
2019-01-11 02:33:17 +01:00
Sebastian Krzyszkowiak
f07b075052
emscripten: install a callback for visibility changes
Fixes an issue where focus blur event was being dispatched only after
the game has been focused again.
2019-01-08 04:57:30 +01:00
Sebastian Krzyszkowiak
2ad77b071f
move autopause feature out of debug events 2019-01-08 04:54:53 +01:00
Sebastian Krzyszkowiak
d0316cd789
don't use timer for ticking; rely on delta instead
Timer was causing an infinite loop in cases where ticking took
more time than 1/60 sec.
2019-01-08 04:53:13 +01:00
Sebastian Krzyszkowiak
f648d661e6
emscripten: set ALLEGRO_NO_PRESERVE_TEXTURE
Doesn't seem to break anything there despite of using SDL2 backend.
2019-01-07 00:40:01 +01:00
Sebastian Krzyszkowiak
5fb99a97f8
emscripten: revise compiler settings and add a pre-js file with audio autoplay workaround 2019-01-07 00:37:34 +01:00
Sebastian Krzyszkowiak
f357d75591
emscripten: use emterpreter for displaying loading screen 2019-01-03 23:22:26 +01:00
Sebastian Krzyszkowiak
dbd047c64e
emscripten: force fullscreen as off on init 2018-12-22 02:21:46 +01:00
Sebastian Krzyszkowiak
cb0f4f6ba7
audio: always try INT16 depth first and use FLOAT32 as a fallback 2018-12-18 20:32:09 +01:00
Sebastian Krzyszkowiak
1b9b16cf15
more member name cleanup 2018-12-18 14:29:48 +01:00
Sebastian Krzyszkowiak
4da588cbb2
API consistency tweaks 2018-12-16 15:35:53 +01:00
Sebastian Krzyszkowiak
df1790d242
doxygen tweaks 2018-12-16 15:15:38 +01:00
Sebastian Krzyszkowiak
b9b231a438
put debug config into public config struct 2018-12-15 01:09:44 +01:00
Sebastian Krzyszkowiak
ce66ba8060
reorganize Game structure, deprecate access to _priv fields 2018-12-15 00:59:34 +01:00
Sebastian Krzyszkowiak
d8f975300d
PrintConsole/DrawConsole: guard console data usage with mutexes 2018-12-14 02:18:05 +01:00
Sebastian Krzyszkowiak
5fcb55591c
fix cppcheck warnings 2018-12-11 00:26:51 +01:00
Sebastian Krzyszkowiak
0ebb85a660
make audio sample rate configurable 2018-12-06 05:37:51 +01:00
Sebastian Krzyszkowiak
3586f49762
ensure that the game operates on UTF-8 on Windows
Should fix issues with Unicode filenames.
2018-12-05 02:09:06 +01:00
Sebastian Krzyszkowiak
2179d6cdc2
synchronize with the main thread on BSoD 2018-12-02 00:26:33 +01:00
Sebastian Krzyszkowiak
58cb054a18
add missing al_destroy_mixer 2018-12-02 00:24:31 +01:00
Sebastian Krzyszkowiak
2149c11ace
imgui: handle touch input, set style and don't call al_set_mouse_cursor, which isn't implemented on some platforms 2018-11-29 21:09:20 +01:00
Sebastian Krzyszkowiak
440e6c41e6
Dear ImGui integration 2018-11-29 04:37:08 +01:00
Sebastian Krzyszkowiak
48189e7715
make depth buffer creation configurable 2018-11-27 03:06:43 +01:00
Sebastian Krzyszkowiak
9ecd29a7c3
include allegro_color and platform specific headers already in libsuperderpy.h, clean up 2018-11-26 01:40:19 +01:00
Sebastian Krzyszkowiak
6c59ef1049
add support for routing the loading gamestate through compositor 2018-11-22 04:53:51 +01:00
Sebastian Krzyszkowiak
a6abd01ec2
libsuperderpy_start: load shaders before loading the loading gamestate
Allows the loading gamestate to use shaders created in common resources.
2018-11-22 03:37:32 +01:00
Sebastian Krzyszkowiak
e04a52ea35
init: set libsuperderpy's default mixer as Allegro's default one 2018-11-02 06:10:15 +01:00
Sebastian Krzyszkowiak
de835593c8
set the default window size according to the viewport aspect ratio 2018-10-27 05:18:02 +02:00
Sebastian Krzyszkowiak
7c30291d95
Load shaders created before libsuperderpy_start already when starting 2018-10-11 06:15:07 +02:00