Commit graph

82 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
c8ee56fc2c
utils: add StrToLower and StrToUpper functions 2018-11-30 02:45:39 +01:00
Sebastian Krzyszkowiak
9611be3267
add ClearToColor util for clearing whole target bitmap, not just the clipping rectangle
Clearing the clipping rectangle can be very costly, while clearing a whole texture is often free.
2018-11-27 02:50:16 +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
7f7c522b3c
make SetFramebufferAsTarget work also for the loading gamestate 2018-11-22 03:40:41 +01:00
Sebastian Krzyszkowiak
f922ffe997
android: log into logcat 2018-11-02 06:07:49 +01:00
Sebastian Krzyszkowiak
d20b81d104
update clang-tidy diagnostics 2018-10-10 21:37:54 +02:00
Sebastian Krzyszkowiak
7d4575308d
add config switches for various debug options 2018-08-09 00:05:25 +02:00
Sebastian Krzyszkowiak
6684847424
send filename, line number and function name to PrintConsole and FatalError for verbose debug output 2018-08-08 22:19:50 +02:00
Sebastian Krzyszkowiak
a730281bb8 add QuitGame function for quiting or sending game to the background (depending on the platform) 2018-07-31 21:25:07 +02:00
Sebastian Krzyszkowiak
8ff2a57b64 fix broken fullscreen toggle on Windows 2018-07-30 17:00:31 +02:00
Sebastian Krzyszkowiak
98eaf73f8c utils: add PunchNumber utility 2018-07-18 01:49:19 +02:00
Sebastian Krzyszkowiak
52da2d53e4 utils: move GetGameName to internal 2018-07-13 18:38:02 +02:00
Sebastian Krzyszkowiak
e5cf17a1a6 utils: add Fract util function and move math utils to separate unit 2018-07-12 20:18:23 +02:00
Sebastian Krzyszkowiak
5888cd2575 FatalError, PrintConsole: properly mark format argument as such
Thanks to that static analysis can catch nonliteral format errors.
2018-07-05 01:04:54 +02:00
Sebastian Krzyszkowiak
a29c7b4d2c fix clang-tidy issues 2018-07-04 19:08:39 +02:00
Sebastian Krzyszkowiak
c2f6aa73cd utils: add Sign function 2018-07-03 04:22:30 +02:00
Sebastian Krzyszkowiak
93859232d9 Fix GCC warnings 2018-06-30 01:50:29 +02:00
Sebastian Krzyszkowiak
291e4c73d6 use al_reset_clipping_rectangle for clarity 2018-06-03 03:39:28 +02:00
Sebastian Krzyszkowiak
9182cabf79 Add abstraction for GPU shaders 2018-05-30 21:11:46 +02:00
Sebastian Krzyszkowiak
396e07a0ce DrawCenteredTintedScaled 2018-04-24 22:06:06 +02:00
Sebastian Krzyszkowiak
34a36c2038 DrawCenteredScaled 2018-04-24 05:01:59 +02:00
Sebastian Krzyszkowiak
a8b57934db Fix the unfamous Fajer crashing issue 2018-04-08 01:34:43 +02:00
Sebastian Krzyszkowiak
d4b2e1c65a utils: rename Clip to Clamp, add Wrap 2018-04-08 01:34:26 +02:00
Sebastian Krzyszkowiak
e58fbdb560 Add a few utils from Rumina 2018-03-20 21:38:50 +01:00
Sebastian Krzyszkowiak
c85381644c rumina hacks 3 2018-03-15 00:46:52 +01:00
Sebastian Krzyszkowiak
ae70770f77 rumina hacks 2018-03-15 00:42:24 +01:00
Sebastian Krzyszkowiak
cb4b9638c8 utils: add missing new lines to debug/error output 2018-01-21 03:18:51 +01:00
Sebastian Krzyszkowiak
0cfef4ddca BSOD: fix placement of the second-last line 2018-01-20 02:51:37 +01:00
Sebastian Krzyszkowiak
e2d9d21f3f BSOD: fix formatting and warnings 2018-01-20 02:45:06 +01:00
Sebastian Krzyszkowiak
18efca478e FatalError: print the error message to stderr
Printing to console outputs it to stdout, but only if
debug mode is enabled. stderr seems better suited too.
2018-01-20 02:24:33 +01:00
suve
2848753083 Use left-align for the wrapped error messages 2017-12-17 15:00:02 +01:00
suve
af53d1378f Wrap long messages in FatalError() 2017-12-17 14:58:03 +01:00
suve
705f84cbf1 Reduce code redundancy in FatalError() 2017-12-17 14:19:24 +01:00
Sebastian Krzyszkowiak
499e884a62 commit Fajer's legacy, so it won't be forgotten 2017-10-30 21:22:49 +01:00
Sebastian Krzyszkowiak
a4ec09d9cd updated .gitignore, code-cosmetics 2017-10-30 21:17:47 +01:00
Sebastian Krzyszkowiak
56ea82d526 GetDataFilePath: change order of lookup paths and remove "../data" 2017-09-20 18:13:49 +02:00
Sebastian Krzyszkowiak
8cfde8c55f SUPPRESS_WARNING macro 2017-09-10 22:37:02 +02:00
Sebastian Krzyszkowiak
bf4aa069a4 don't use empty initializers (it's a GNU extension) 2017-09-10 22:07:02 +02:00
Sebastian Krzyszkowiak
2b1248ce14 clang-tidy support; clang-tidy and clang-format fixes 2017-09-10 21:35:14 +02:00
Sebastian Krzyszkowiak
450e33b2e3 support of loading in separate thread; thread-safe console; various fixes from clang code model warnings 2017-09-09 00:11:43 +02:00
Sebastian Krzyszkowiak
f94930b5d5 PrintConsole: restore previous target bitmap instead of reseting to backbuffer 2017-09-04 16:02:49 +02:00
Sebastian Krzyszkowiak
3581c6060c full emscripten support, plus flac->ogg encoding for emscripten and android 2017-08-24 21:09:07 +02:00
Sebastian Krzyszkowiak
a955820e8f emscripten support 2017-08-24 00:51:58 +02:00
Sebastian Krzyszkowiak
b7346ea330 use leak sanitizer for debug build and break the build in case of unresolved symbols in libraries 2017-08-19 01:26:53 +02:00
Sebastian Krzyszkowiak
b4b0403a77 GetDataFilePath: add ability to mask data files with android specific versions 2017-08-08 00:16:03 +02:00
Sebastian Krzyszkowiak
e9bd4eefa5 update license to GPLv3+ 2017-07-22 18:22:28 +02:00
Sebastian Krzyszkowiak
d3f876097f add CreateNotPreservedBitmap helper 2017-06-13 14:21:17 +02:00
Sebastian Krzyszkowiak
fdd48433bc gamestate reloading and fix for calling Gamestate_Pause/Gamestate_Resume 2016-11-11 19:38:26 +01:00
Sebastian Krzyszkowiak
4ecb7e71de revamp letterbox and scaling code and add WindowCoordsToViewport util function 2016-11-08 23:28:28 +01:00