Function nanogui::file_dialog(const std::vector<std::pair<std::string, std::string>>&, bool, bool)¶
Defined in File common.h
Function Documentation¶
-
std::vector<std::string>
nanogui::file_dialog(const std::vector<std::pair<std::string, std::string>> &filetypes, bool save, bool multiple) Open a native file open dialog, which allows multiple selection.
- Parameters
filetypes: Pairs of permissible formats with descriptions like("png", "Portable Network Graphics").save: Set totrueif you would like subsequent file dialogs to open at whatever folder they were in when they close this one.multiple: Set totrueif you would like to be able to select multiple files at once. May not be simultaneously true withsave.