loadSkybox method

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

Load a skybox from skyboxPath (which must be a .ktx file)

Implementation

@override
Future loadSkybox(String skyboxPath) async {
  var promise = _module.ccall(
      "load_skybox",
      "void",
      ["void*".toJS, "string".toJS].toJS,
      [_viewer!, skyboxPath.toJS].toJS,
      {"async": true}.jsify()) as JSPromise;
  await promise.toDart;
}