initializeImGui function

DynamicLibrary initializeImGui()

Implementation

DynamicLibrary initializeImGui() {
  var dll = '';

  if (Platform.isWindows) {
    dll = 'cimgui64.dll';
  } else if (Platform.isMacOS) {
    dll = 'cimgui64.dylib';
  } else if (Platform.isLinux) {
    dll = 'cimgui64.so';
  } else {
    throw Exception('Unsupported platform');
  }

  return DynamicLibrary.open(dll);
}