loadSkybox method

  1. @override
Future loadSkybox(
  1. String skyboxPath
)
override

Implementation

@override
Future loadSkybox(String skyboxPath) async {
  final pathPtr = skyboxPath.toNativeUtf8(allocator: allocator).cast<Char>();

  await withVoidCallback((cb) {
    load_skybox_ffi(_viewer!, pathPtr, cb);
  });

  allocator.free(pathPtr);
}