htsky

Load and structure a vertically stratified atmosphere
git clone git://git.meso-star.fr/htsky.git
Log | Files | Refs | README | LICENSE

htsky_atmosphere.h (1259B)


      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_ATMOSPHERE_H
     19 #define HTSKY_ATMOSPHERE_H
     20 
     21 #include <star/svx.h> /* svx_tree_desc */
     22 
     23 struct htsky;
     24 
     25 struct atmosphere {
     26   struct svx_tree* bitree;
     27   struct svx_tree_desc bitree_desc;
     28 };
     29 
     30 extern LOCAL_SYM res_T
     31 atmosphere_setup
     32   (struct htsky* sky,
     33    const double optical_thickness_threshold);
     34 
     35 extern LOCAL_SYM void
     36 atmosphere_clean
     37   (struct htsky* sky);
     38 
     39 #endif /* HTSKY_ATMOSPHERE_H */