Industry Compat keymap: Fix inconsistencies and conflicts with color swatches and...
[blender.git] / source / blender / draw / engines / eevee / eevee_lightcache.h
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2018, Blender Foundation.
17  */
18
19 /** \file
20  * \ingroup eevee
21  */
22
23 #ifndef __EEVEE_LIGHTCACHE_H__
24 #define __EEVEE_LIGHTCACHE_H__
25
26 #include "BLI_sys_types.h" /* for bool */
27
28 struct EEVEE_Data;
29 struct EEVEE_LightBake;
30 struct EEVEE_ViewLayerData;
31 struct LightCache;
32 struct Scene;
33 struct SceneEEVEE;
34 struct ViewLayer;
35
36 /* Light Bake */
37 struct wmJob *EEVEE_lightbake_job_create(struct wmWindowManager *wm,
38                                          struct wmWindow *win,
39                                          struct Main *bmain,
40                                          struct ViewLayer *view_layer,
41                                          struct Scene *scene,
42                                          int delay,
43                                          int frame);
44 void *EEVEE_lightbake_job_data_alloc(struct Main *bmain,
45                                      struct ViewLayer *viewlayer,
46                                      struct Scene *scene,
47                                      bool run_as_job,
48                                      int frame);
49 void EEVEE_lightbake_job_data_free(void *custom_data);
50 void EEVEE_lightbake_update(void *custom_data);
51 void EEVEE_lightbake_job(void *custom_data, short *stop, short *do_update, float *progress);
52
53 void EEVEE_lightbake_update_world_quick(struct EEVEE_ViewLayerData *sldata,
54                                         struct EEVEE_Data *vedata,
55                                         const Scene *scene);
56
57 /* Light Cache */
58 struct LightCache *EEVEE_lightcache_create(const int grid_len,
59                                            const int cube_len,
60                                            const int cube_size,
61                                            const int vis_size,
62                                            const int irr_size[3]);
63 void EEVEE_lightcache_free(struct LightCache *lcache);
64 void EEVEE_lightcache_load(struct LightCache *lcache);
65 void EEVEE_lightcache_info_update(struct SceneEEVEE *eevee);
66
67 #endif /* __EEVEE_LIGHTCACHE_H__ */