Function OSSingleton.setNativeIcon

Sets the game's icon using a multi-size platform-specific icon file (*.ico on Windows and *.icns on macOS). Appropriate size sub-icons are used for window caption, taskbar/dock and window selection dialog. Note: This method is implemented on macOS and Windows.

void setNativeIcon (
  const(String) filename
) nothrow @nogc;