createSwapChain method

Future createSwapChain(
  1. int width,
  2. int height
)

Implementation

Future createSwapChain(int width, int height) async {
  _module.ccall(
      "create_swap_chain",
      "void",
      ["void*".toJS, "void*".toJS, "uint32_t".toJS, "uint32_t".toJS].toJS,
      [_viewer!, null, width.toJS, height.toJS].toJS,
      null);
}