Function nanogui::file_dialog(const std::vector<std::pair<std::string, std::string>>&, bool)

Function Documentation

std::string nanogui::file_dialog(const std::vector<std::pair<std::string, std::string>> &filetypes, bool save)

Open a native file open/save dialog.

Parameters
  • filetypes: Pairs of permissible formats with descriptions like ("png", "Portable Network Graphics").

  • save: Set to true if you would like subsequent file dialogs to open at whatever folder they were in when they close this one.