htsky_cloud.h (1577B)
1 /* Copyright (C) 2018, 2019, 2020, 2021 |Méso|Star> (contact@meso-star.com) 2 * Copyright (C) 2018, 2019 Centre National de la Recherche Scientifique 3 * Copyright (C) 2018, 2019 Université Paul Sabatier 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17 18 #ifndef HTSKY_CLOUD_H 19 #define HTSKY_CLOUD_H 20 21 #include <star/svx.h> /* svx_tree_desc */ 22 23 struct htsky; 24 25 struct cloud { 26 struct svx_tree* octree; 27 struct svx_tree_desc octree_desc; 28 }; 29 30 extern LOCAL_SYM res_T 31 cloud_setup 32 (struct htsky* sky, 33 const unsigned grid_max_definition[3], /* Ignore when the cache is used */ 34 const double optical_thickness_threshold, /* Ingore when the cache is used */ 35 const char* cache_name, /* Name of the stream where octrees are stored */ 36 const int force_cache_update, /* Force upd of the stream storing the octrees */ 37 FILE* cache); /* Stream where octrees are written/read. May be NULL */ 38 39 extern LOCAL_SYM void 40 cloud_clean 41 (struct htsky* sky); 42 43 #endif /* HTSKY_CLOUDS_H */