runRaylib function

void runRaylib(
  1. RaylibGame game, {
  2. String? nativeLibPath,
})

Implementation

void runRaylib(RaylibGame game, {String? nativeLibPath}) {
  final rl = findRaylib(nativeLibPath ?? 'raylib');
  game.init(rl);
  while (!game.shouldClose(rl)) {
    game.loop(rl);
  }
  game.close(rl);
  game.dispose(rl);
}