d63d742695
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
28 lines
700 B
Dart
28 lines
700 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:wolf_3d_flutter/wolf_3d_flutter.dart';
|
|
|
|
import 'packaged_games_loader.dart';
|
|
import 'wolf3d_gui_app.dart';
|
|
|
|
/// Creates the application shell after loading available Wolf3D data sets.
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
final seededGames = await loadPackagedGames();
|
|
|
|
final Wolf3dFlutterEngine wolf3d = await Wolf3dFlutterEngine(
|
|
debug: kDebugMode,
|
|
).init(seededGames: seededGames);
|
|
|
|
if (kDebugMode) {
|
|
wolf3d.enableMenuHeaderBandDebugLogging(prefix: '[wolf_3d_gui]');
|
|
}
|
|
|
|
runApp(
|
|
MaterialApp(
|
|
home: Wolf3dGuiApp(engine: wolf3d),
|
|
),
|
|
);
|
|
}
|