Commit Graph

21 Commits

Author SHA1 Message Date
Le Philousophe
85952c72bf VIDEO: Move API to Path 2023-12-24 13:19:25 +01:00
BLooperZ
5ff6bd08cb VIDEO: Allow drawing subtitles in const methods 2023-08-06 14:46:10 +02:00
Le Philousophe
c6e9986e67 VIDEO: Also try to load font from fonts.dat
This what is expected for now anyway
2023-01-26 07:42:48 +01:00
Le Philousophe
db1d834729 VIDEO: Handle screen size change in subtitles
This avoids assertions failures when overlay is resized while displaying
subtitles
2022-11-20 17:18:38 +01:00
Le Philousophe
fd6c95c35b VIDEO: Cleanup subtitles dev mode 2022-11-20 17:18:38 +01:00
Le Philousophe
30743f4a5e VIDEO: Optimize subtitles rendering
Subtitle text is only rendered while necessary.
Overlay management is done in the class instead of expecting engine to
handle it.
Overlay is not cleared when there is alpha support. This avoids useless
memory operations while the overlay being transparent, game screen is
rendered below it.
2022-11-20 17:18:38 +01:00
Die4Ever
6d7d970e17 VIDEO: subtitles dev mode config 2022-09-29 11:27:47 +02:00
BLooperZ
aea6f5348a VIDEO: Support BiDi text in subtitles 2022-09-24 11:41:50 +02:00
Eugene Sandulenko
878b79a149
VIDEO: Fix compilation without freetype2 2022-09-24 00:42:28 +02:00
BLooperZ
3f611f9d51 VIDEO: Adapt subtitles overlay to text size 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
a72b97097c VIDEO: With shadow we do not need to render monochrome anymore 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
0a093d5e0a VIDEO: Attempt to fake font outline 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
dff6943cbf VIDEO: Render subtitles without antialiasing (less artifacts) 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
57ba69d046 VIDEO: Switched to Unicode 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
f255467bd3 VIDEO: Center subtitles on screen 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
2ca793f720 VIDEO: Finished subtitle drawing implementation 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
af8c37db9d VIDEO: Initial code for drawing subtitles on overlay 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
9cb80bc9fb VIDEO: Load font for Subtitles 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
8fa9f74d59 VIDEO: Fix crash on subtitles reload 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
bb42c9bda4 VIDEO: Started implementation of generic Subtitles class 2022-09-23 11:05:01 +02:00
Eugene Sandulenko
d02ff2ea5a VIDEO: Renamed srt_parser.* to subtitles.* 2022-09-23 11:05:01 +02:00