Commit graph

2306 commits

Author SHA1 Message Date
Andrei Alexeyev
b8c2755ce1
attempt to fix more feature-test-macro portability issues 2019-12-18 15:38:00 +02:00
Andrei Alexeyev
6834796262
emscripten compatibility fixes 2019-12-18 15:33:36 +02:00
Alice
030fae87f5 fix macOS compile issue for timespec_get (#183) 2019-12-12 23:02:06 +02:00
Andrei Alexeyev
5d4155514e
fix debug overlay not drawn when global postprocessing is active 2019-12-05 22:13:38 +02:00
Andrei Alexeyev
911f42b23a
fix memleak with TAISEI_PRELOAD_SHADERS=1 2019-11-26 12:06:24 +02:00
Andrei Alexeyev
80b1026d08
Don't redefine standard complex macro; use a new cmplx typedef
This also introduces `float32`, `float64`, and `real` typedefs to be
used in place of `float` and `double` later. `real` is for game code and
other places where we don't particularly care about the precision and
format of the underlying type, and is currently defined to `double`.
`float32` and `float64` should replace `float` and `double` respectively
2019-11-22 05:38:48 +02:00
Andrei Alexeyev
78191b3015
Emscripten compat fixups 2019-11-19 07:55:35 +02:00
Andrei Alexeyev
6f2231c999
shut up a debug print in rectpack 2019-11-08 21:07:02 +02:00
Andrei Alexeyev
6a72d4a637
Add env variable TAISEI_SDL_LOG (enables SDL log at given priority) 2019-11-08 21:05:40 +02:00
Andrei Alexeyev
383234efe7
random cleanup 2019-11-08 20:53:43 +02:00
Andrei Alexeyev
a6bf08a5bf
Remove Lalasa's endings as well
Follow-up for #179; forgot about these in the previous commit.
2019-10-31 15:27:03 +02:00
Andrei Alexeyev
49dcd7c8d7
Remove Lalasa's contributions (by request)
This replaces the story and dialogue contents with stubs, as well as
removes Lalasa's entry from the credits, by her own request.

Fixes #179
2019-10-31 13:04:30 +02:00
Andrei Alexeyev
8a42813951
fix warning due to enum type being unsigned 2019-10-15 09:58:28 +03:00
Andrei Alexeyev
9d3bf87559
Refactor matrix stack API to get rid of matrix mode (#177)
This replaces the r_mat_foo functions with specialized r_mat_{mv,tex,proj}_foo counterparts that operate explicitly on the modelview, texture, and projection matrix stacks respectively.
2019-10-12 15:02:15 +03:00
Andrei Alexeyev
fa5757191c
fix messed up laser blurring at max quality 2019-10-04 15:01:46 +03:00
Andrei Alexeyev
b14b8493d4
Optimize text drawing
This adds a lower-level sprite batching API intended to reduce overhead
of bulk sprite submissions when it is known that no pipeline state needs
to be changed in-between individual sprites.
2019-10-03 02:49:10 +03:00
Andrei Alexeyev
279114cbd5
add global FPS display in developer mode 2019-10-03 01:23:46 +03:00
Andrei Alexeyev
58f31a1d03
replace get_option('debug') usage with is_debug_build 2019-10-01 07:19:33 +03:00
Andrei Alexeyev
436339a38d
Fix meson 0.48.0 compat; require >=0.48.0 and recommend >=0.49.0 2019-09-29 22:02:38 +03:00
Andrei Alexeyev
8bdaa529df
fix for platforms where alignof(max_align_t) < 16
i686 windows in particular
2019-09-24 22:59:12 +03:00
Andrei Alexeyev
f79f8574a9
update FOSS acknowledgements 2019-09-24 15:58:49 +03:00
Andrei Alexeyev
6040d1f2c4
optimize MarisaA laser collision to not spam malloc
More importantly, this sidesteps a miscompilation that happens at least
with GCC9+gold -O3 -flto, that causes the lasers to turn enemies
permanently invulnerable.
2019-09-22 22:46:06 +03:00
Andrei Alexeyev
81ce827cd2
windows: don't link to comctl32 2019-09-22 00:26:21 +03:00
Andrei Alexeyev
7fe3f8ff90
windows: detect intel's shitty driver and fall back to ANGLE 2019-09-21 16:46:22 +03:00
Andrei Alexeyev
1fdc00fc39
fix an #include portability issue 2019-09-19 18:32:15 +03:00
Andrei Alexeyev
af0bf87513
Share spritesheets between fonts 2019-09-17 14:35:29 +03:00
Andrei Alexeyev
6a2c976aaa
add deallocation support for rectpack, with partial defragmentation 2019-09-17 13:53:29 +03:00
Andrei Alexeyev
4bd2d32826
Support shader translation into legacy GLSL versions 2019-09-16 22:53:43 +03:00
Andrei Alexeyev
1bd0d49e70
video: don't try to init unavailable drivers 2019-09-15 12:58:00 +03:00
Andrei Alexeyev
55b835ebdc
video: fix fallback to default SDL driver selection 2019-09-15 12:52:24 +03:00
Andrei Alexeyev
f0ae5b4fac
switch: install .elf only in debug builds 2019-09-15 10:53:30 +03:00
Andrei Alexeyev
5187bb785d
preload dialog text shader 2019-09-12 18:33:08 +03:00
Andrei Alexeyev
a84f7c8629
fix video viewport not being updated after leaving fullscreen 2019-09-11 19:19:44 +03:00
Andrei Alexeyev
28ba4dc955
Make video struct private
Also display actual window size in settings when no known mode is
selected
2019-09-11 18:42:13 +03:00
Andrei Alexeyev
2b58c3515f
glcommon: more robust glsl versions detection 2019-09-10 18:53:46 +03:00
Andrei Alexeyev
0bd00116a1
gl33: fix glObjectLabel called on nonexistent buffer objects 2019-09-10 18:37:17 +03:00
Andrei Alexeyev
445f22cdf7
gl33: add some env variables controlling context creation 2019-09-10 18:36:33 +03:00
Andrei Alexeyev
e68bfdb2ea
workaround for some textures not loading in WebGL 2019-09-10 09:23:35 +03:00
Andrei Alexeyev
241bda0c45
emscripten: pre-init WebGL context; build system fixes
The context can be wrapped via
https://github.com/KhronosGroup/WebGLDeveloperTools for debugging
2019-09-10 04:27:35 +03:00
Andrei Alexeyev
c0d0ca9710
hackish static linking mode for GLES3 (webgl; not really good for anything else) 2019-09-09 04:39:33 +03:00
Andrei Alexeyev
7d5830adcb
emscripten: use name_suffix for the llvm bitcode target 2019-09-08 04:06:07 +03:00
Andrei Alexeyev
a2dda4e83f
disable anisotropy by default 2019-09-08 01:38:53 +03:00
Andrei Alexeyev
b0140d742e
options: fix first entry having focus when it's disabled 2019-09-07 05:30:46 +03:00
Andrei Alexeyev
3a7dfdd5b0
emscripten: add some GL debugging link flags 2019-09-05 07:43:12 +03:00
Andrei Alexeyev
cd244149ed
improve laser rendering, in some cases performance 2019-08-30 02:55:06 +03:00
Andrei Alexeyev
b92fb58da9
fix build on latest emscripten 2019-08-27 01:02:37 +03:00
Andrei Alexeyev
2e9904e83c
New system to manage auto-resized framebuffers 2019-08-25 02:52:39 +03:00
Andrei Alexeyev
5d535bb93c
fix broken interaction of ReimuB gaps with powersurge effect (visual) 2019-08-23 18:29:40 +03:00
Andrei Alexeyev
673df39f7f
optimize Reimu bomb bg 2019-08-23 16:27:16 +03:00
Andrei Alexeyev
31ea0d409c
replace Yukkuri Reimu with Yukkuri Kyouko 2019-08-22 23:00:13 +03:00