1 // Copyright 2018-2020 Intel Corporation 2 // SPDX-License-Identifier: Apache-2.0 3 4 #pragma once 5 6 namespace ospray_studio { 7 8 using FileList = std::vector<std::string>; 9 using FilterList = std::vector<std::string>; 10 11 // XXX tie this into the Importer extensions list 12 static const FilterList defaultFilterList = {".*", 13 "Scene (.sg){.sg}", 14 "Geometry (.obj .gltf .glb){.obj,.gltf,.glb}", 15 "Volume (.raw .vdb){.raw,.vdb}", 16 "Image (.jpg .hdr .exr){.jpg,.jpeg,.hdr,.exr}"}; 17 18 bool fileBrowser(FileList &fileList, 19 const std::string &prompt, 20 const bool allowMultipleSelection = false, 21 const FilterList &filters = defaultFilterList); 22 23 } // namespace ospray_studio 24