Commit graph

1054 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
83bd62277f
initial set of timeline unit tests 2019-04-03 02:59:48 +02:00
Sebastian Krzyszkowiak
c3096eee7b
android: rework loadLibrary function to fix bugs and report errors 2019-04-02 23:38:37 +02:00
Sebastian Krzyszkowiak
1e7fe215c4
timeline: gracefullly handle out of bounds indexes in TM_GetArg 2019-03-30 04:06:40 +01: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
834b1028f5
support a case where width, height and ratio in params are all zeros 2019-03-29 21:26:25 +01:00
Sebastian Krzyszkowiak
deb38e778c
don't fail on missing icon file 2019-03-29 20:54:14 +01:00
Sebastian Krzyszkowiak
db0d8da708
utils: add FindDataFilePath, which just returns NULL on failure 2019-03-29 20:53:45 +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
cdc99444e0
fix clang-analyzer warnings and reformat 2019-03-26 04:31:24 +01:00
Sebastian Krzyszkowiak
1350fe9437
timeline: use floating-point seconds instead of integer miliseconds for delays in API 2019-03-16 01:58:28 +01:00
Sebastian Krzyszkowiak
6e07719beb
timeline: add STOP action state 2019-03-16 01:44:02 +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
6899ea5f52
resize event handling tweaks
Fixes Android and somehow optimizes resizing with lots of gamestates
2019-03-09 03:18:42 +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
c7ebc51f16
move SetupViewport to internal functions 2019-03-05 03:42:59 +01:00
Sebastian Krzyszkowiak
151e11d371
utils: add ToggleFullscreen and ToggleMute 2019-03-05 03:42:25 +01:00
Sebastian Krzyszkowiak
c93c22cf04
make Gamestate structure private and add API for accessing it 2019-03-05 03:20:06 +01:00
Sebastian Krzyszkowiak
66e0319691
cmake: make source files of game's shared library configurable 2019-02-28 21:44:02 +01:00
Sebastian Krzyszkowiak
ae9cf19778
utils: Push/PopTransform functions for easier transforming 2019-02-26 18:14:19 +01:00
Sebastian Krzyszkowiak
b84727bff0
utils: add transform-aware clipping rectangle functions 2019-02-26 01:59:49 +01:00
Sebastian Krzyszkowiak
43c830bf99
drop "libsuperderpy-" prefix from game-specific shared libraries 2019-02-26 01:42:16 +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
7c89ef74e2
don't react to ALLEGRO_EVENT_DISPLAY_RESIZE if the new size is the same as the old one 2019-02-19 03:49:53 +01:00
Sebastian Krzyszkowiak
199ad64bac
ReloadGamestates: also reload loading gamestate 2019-02-14 05:35:17 +01:00
Sebastian Krzyszkowiak
0ba9c7bbae
move first al_flip_display() way earlier 2019-02-13 23:00:33 +01:00
Sebastian Krzyszkowiak
f8306f80c1
ReloadShaders: actually don't reload already loaded stuff unless forced 2019-02-13 22:59:45 +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
379ba8f629
cmake: make LTO optional 2019-02-13 22:53:43 +01:00
Sebastian Krzyszkowiak
23da896077 Update README.md 2019-02-09 21:34:28 +00:00
Sebastian Krzyszkowiak
eee42e2288 Update README.md 2019-02-09 21:26:04 +00:00
Sebastian Krzyszkowiak
d878a86634
make DCE on emscripten/wasm configurable and disabled by default 2019-02-08 02:12:31 +01:00
Sebastian Krzyszkowiak
26a32fd083
destroy and recreate voice on suspend and resume 2019-02-07 04:11:40 +01:00
Sebastian Krzyszkowiak
b07c9033e9
update emscripten flags 2019-02-06 01:48:35 +01:00
Sebastian Krzyszkowiak
9e0a1ddb36
IsOnCharacter: properly support subbitmaps (for instance spritesheets) 2019-02-01 05:45:26 +01:00
Sebastian Krzyszkowiak
10164293ba
add ability to enable multisampling via init params 2019-02-01 03:37:15 +01:00
Sebastian Krzyszkowiak
e89f654559
ImgToWebp: add ability to use lossless compression
Good for pixel art
2019-01-24 23:57:23 +01:00
Sebastian Krzyszkowiak
a411819d5a
android: update toolchain for docker images 2019-01-24 04:11:13 +01:00
Sebastian Krzyszkowiak
cb080f027b
android: don't compress opus and wbp files when packaging apk
fixes an issue with playback of opus files getting cut
2019-01-21 21:41:41 +01:00
Sebastian Krzyszkowiak
d1fbe5dd49
android: fix setting the debuggable property for the apk 2019-01-21 04:52:15 +01:00
Sebastian Krzyszkowiak
54a305b3ec
android: migrate from ant to gradle 2019-01-20 03:00:01 +01:00
Sebastian Krzyszkowiak
45d36870ad
PrintConsole: print current time when in verbose mode 2019-01-17 02:42:33 +01:00
Sebastian Krzyszkowiak
c5b5d7a7e0
fix macos builds 2019-01-13 21:34:32 +01:00
Sebastian Krzyszkowiak
65807cd369
enable dead code elimination on webassembly builds 2019-01-13 20:02:21 +01:00