feat: Add intro splash screen with transition effects and rendering support

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-20 12:05:34 +01:00
parent 9733516693
commit b23c02f716
6 changed files with 367 additions and 14 deletions

View File

@@ -53,9 +53,7 @@ class _WolfGlslRendererState extends BaseWolfRendererState<WolfGlslRenderer> {
}
@override
Color get scaffoldColor => widget.engine.difficulty == null
? _colorFromRgb(widget.engine.menuBackgroundRgb)
: const Color.fromARGB(255, 4, 64, 64);
Color get scaffoldColor => Colors.black;
@override
void dispose() {
@@ -149,10 +147,6 @@ class _WolfGlslRendererState extends BaseWolfRendererState<WolfGlslRenderer> {
widget.onUnavailable?.call();
}
}
Color _colorFromRgb(int rgb) {
return Color(0xFF000000 | (rgb & 0x00FFFFFF));
}
}
class _GlslFramePainter extends CustomPainter {