Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-09-07 16:17:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-07 16:17:40 +0300
commitfa7ee622f0fb2f7482dbae94df194a3b33a73a98 (patch)
treeea238e4fe370d261dd86580a670a5ce00f84cacf /source/blender/blenkernel/BKE_studiolight.h
parent1b0dd5a2150c2207768ba74c1a25b842f3d4ece1 (diff)
Cleanup: includes in headers
Forward declare structs where possible.
Diffstat (limited to 'source/blender/blenkernel/BKE_studiolight.h')
-rw-r--r--source/blender/blenkernel/BKE_studiolight.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/blenkernel/BKE_studiolight.h b/source/blender/blenkernel/BKE_studiolight.h
index 108e93d9caa..c6d1e61fb47 100644
--- a/source/blender/blenkernel/BKE_studiolight.h
+++ b/source/blender/blenkernel/BKE_studiolight.h
@@ -26,14 +26,13 @@
* Studio lighting for the 3dview
*/
-#include "BKE_context.h"
-
#include "BLI_sys_types.h"
-#include "DNA_space_types.h"
+#include "BLI_path_util.h"
+
#include "DNA_userdef_types.h"
-#include "IMB_imbuf_types.h"
+struct ImBuf;
/*
* These defines are the indexes in the StudioLight.diffuse_light
@@ -103,7 +102,7 @@ enum StudioLightFlag {
typedef void StudioLightFreeFunction(struct StudioLight *, void *data);
typedef struct StudioLightImage {
- ImBuf *ibuf;
+ struct ImBuf *ibuf;
struct GPUTexture *gputexture;
} StudioLightImage;
@@ -124,9 +123,9 @@ typedef struct StudioLight {
float light_direction[3];
StudioLightImage matcap_diffuse;
StudioLightImage matcap_specular;
- ImBuf *equirect_radiance_buffer;
- ImBuf *equirect_irradiance_buffer;
- ImBuf *radiance_cubemap_buffers[6];
+ struct ImBuf *equirect_radiance_buffer;
+ struct ImBuf *equirect_irradiance_buffer;
+ struct ImBuf *radiance_cubemap_buffers[6];
struct GPUTexture *equirect_radiance_gputexture;
struct GPUTexture *equirect_irradiance_gputexture;
SolidLight light[STUDIOLIGHT_MAX_LIGHT];