|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | StudioLightImage |
| struct | StudioLight |
Typedefs | |
| typedef void | StudioLightFreeFunction(struct StudioLight *, void *data) |
| typedef struct StudioLightImage | StudioLightImage |
| typedef struct StudioLight | StudioLight |
Enumerations | |
| enum | StudioLightFlag { STUDIOLIGHT_INTERNAL = (1 << 0) , STUDIOLIGHT_EXTERNAL_FILE = (1 << 1) , STUDIOLIGHT_TYPE_STUDIO = (1 << 2) , STUDIOLIGHT_TYPE_WORLD = (1 << 3) , STUDIOLIGHT_TYPE_MATCAP = (1 << 4) , STUDIOLIGHT_EXTERNAL_IMAGE_LOADED = (1 << 5) , STUDIOLIGHT_EQUIRECT_RADIANCE_GPUTEXTURE = (1 << 6) , STUDIOLIGHT_USER_DEFINED = (1 << 7) , STUDIOLIGHT_MATCAP_DIFFUSE_GPUTEXTURE = (1 << 8) , STUDIOLIGHT_MATCAP_SPECULAR_GPUTEXTURE = (1 << 9) , STUDIOLIGHT_SPECULAR_HIGHLIGHT_PASS = (1 << 10) } |
Studio lighting for the 3dview
Definition in file BKE_studiolight.h.
| #define STUDIOLIGHT_FLAG_ALL (STUDIOLIGHT_INTERNAL | STUDIOLIGHT_EXTERNAL_FILE) |
Definition at line 55 of file BKE_studiolight.h.
| #define STUDIOLIGHT_FLAG_ORIENTATIONS (STUDIOLIGHT_TYPE_STUDIO | STUDIOLIGHT_TYPE_WORLD | STUDIOLIGHT_TYPE_MATCAP) |
Definition at line 56 of file BKE_studiolight.h.
Referenced by UI_icon_from_rnaptr().
| #define STUDIOLIGHT_ICON_ID_TYPE_IRRADIANCE (1 << 1) |
Definition at line 26 of file BKE_studiolight.h.
Referenced by BKE_studiolight_preview(), and studiolight_create().
| #define STUDIOLIGHT_ICON_ID_TYPE_MATCAP (1 << 2) |
Definition at line 27 of file BKE_studiolight.h.
Referenced by BKE_studiolight_preview(), and studiolight_create().
| #define STUDIOLIGHT_ICON_ID_TYPE_MATCAP_FLIPPED (1 << 3) |
Definition at line 28 of file BKE_studiolight.h.
Referenced by BKE_studiolight_preview(), and studiolight_create().
| #define STUDIOLIGHT_ICON_ID_TYPE_RADIANCE (1 << 0) |
Definition at line 25 of file BKE_studiolight.h.
Referenced by BKE_studiolight_preview(), and studiolight_create().
| #define STUDIOLIGHT_ICON_SIZE 96 |
Definition at line 32 of file BKE_studiolight.h.
Referenced by studiolight_irradiance_preview(), studiolight_matcap_preview(), studiolight_radiance_preview(), and ui_icon_ensure_deferred().
| #define STUDIOLIGHT_MAX_LIGHT 4 |
Definition at line 30 of file BKE_studiolight.h.
Referenced by studiolight_lights_eval().
| #define STUDIOLIGHT_ORIENTATIONS_MATERIAL_MODE (STUDIOLIGHT_TYPE_WORLD) |
Definition at line 58 of file BKE_studiolight.h.
Referenced by blender::io::hydra::WorldData::init(), and blender::eevee::LookdevWorld::sync().
| #define STUDIOLIGHT_ORIENTATIONS_SOLID (STUDIOLIGHT_INTERNAL | STUDIOLIGHT_TYPE_STUDIO) |
Definition at line 59 of file BKE_studiolight.h.
| typedef struct StudioLight StudioLight |
| typedef void StudioLightFreeFunction(struct StudioLight *, void *data) |
Definition at line 61 of file BKE_studiolight.h.
| typedef struct StudioLightImage StudioLightImage |
| enum StudioLightFlag |
Definition at line 38 of file BKE_studiolight.h.
| StudioLight * BKE_studiolight_create | ( | const char * | filepath, |
| const SolidLight | light[4], | ||
| const float | light_ambient[3] ) |
Definition at line 997 of file studiolight.cc.
References BLI_addtail(), BLI_path_split_file_part(), FILE_MAXFILE, StudioLight::filepath, StudioLight::light, StudioLight::light_ambient, StudioLight::name, STRNCPY, studiolight_create(), STUDIOLIGHT_EXTERNAL_FILE, STUDIOLIGHT_SPECULAR_HIGHLIGHT_PASS, STUDIOLIGHT_TYPE_STUDIO, STUDIOLIGHT_USER_DEFINED, studiolight_write_solid_light(), and studiolights.
| void BKE_studiolight_default | ( | SolidLight | lights[4], |
| float | light_ambient[3] ) |
Definition at line 782 of file studiolight.cc.
References SolidLight::col, copy_v3_fl3(), SolidLight::flag, SolidLight::smooth, SolidLight::spec, and SolidLight::vec.
Referenced by BKE_blendfile_userdef_from_defaults(), and BKE_studiolight_init().
| void BKE_studiolight_ensure_flag | ( | StudioLight * | sl, |
| int | flag ) |
Ensure state of studio-lights.
Definition at line 959 of file studiolight.cc.
References flag, StudioLight::flag, studiolight_create_equirect_radiance_gputexture(), studiolight_create_matcap_diffuse_gputexture(), studiolight_create_matcap_specular_gputexture(), STUDIOLIGHT_EQUIRECT_RADIANCE_GPUTEXTURE, STUDIOLIGHT_EXTERNAL_IMAGE_LOADED, studiolight_load_equirect_image(), STUDIOLIGHT_MATCAP_DIFFUSE_GPUTEXTURE, and STUDIOLIGHT_MATCAP_SPECULAR_GPUTEXTURE.
Referenced by blender::workbench::get_matcap_tx(), studiolight_create_equirect_radiance_gputexture(), studiolight_create_matcap_diffuse_gputexture(), studiolight_create_matcap_specular_gputexture(), studiolight_matcap_preview(), studiolight_radiance_preview(), and blender::eevee::LookdevWorld::sync().
| struct StudioLight * BKE_studiolight_find | ( | const char * | name, |
| int | flag ) |
Definition at line 903 of file studiolight.cc.
References BKE_studiolight_find_default(), FILE_MAXFILE, flag, LISTBASE_FOREACH, STREQLEN, and studiolights.
Referenced by blo_do_versions_280(), blender::io::hydra::WorldData::init(), blender::workbench::SceneResources::init(), and blender::eevee::LookdevWorld::sync().
| struct StudioLight * BKE_studiolight_find_default | ( | int | flag | ) |
Definition at line 878 of file studiolight.cc.
References flag, LISTBASE_FOREACH, STREQ, STUDIOLIGHT_MATCAP_DEFAULT, STUDIOLIGHT_TYPE_MATCAP, STUDIOLIGHT_TYPE_WORLD, STUDIOLIGHT_WORLD_DEFAULT, and studiolights.
Referenced by BKE_studiolight_find(), BKE_studiolight_findindex(), and blo_do_versions_280().
| struct StudioLight * BKE_studiolight_findindex | ( | int | index, |
| int | flag ) |
Definition at line 919 of file studiolight.cc.
References BKE_studiolight_find_default(), flag, LISTBASE_FOREACH, and studiolights.
| void BKE_studiolight_free | ( | void | ) |
Definition at line 871 of file studiolight.cc.
References BLI_pophead(), studiolight_free(), and studiolights.
Referenced by BKE_blender_free(), and BKE_studiolight_refresh().
| void BKE_studiolight_init | ( | void | ) |
Definition at line 835 of file studiolight.cc.
References BKE_studiolight_default(), BLENDER_SYSTEM_DATAFILES, BLENDER_USER_DATAFILES, BLI_addtail(), BLI_listbase_sort(), StudioLight::light, StudioLight::light_ambient, StudioLight::name, STRNCPY, studiolight_add_files_from_datafolder(), studiolight_cmp(), studiolight_create(), STUDIOLIGHT_INTERNAL, STUDIOLIGHT_LIGHTS_FOLDER, STUDIOLIGHT_MATCAP_FOLDER, STUDIOLIGHT_SPECULAR_HIGHLIGHT_PASS, STUDIOLIGHT_TYPE_MATCAP, STUDIOLIGHT_TYPE_STUDIO, STUDIOLIGHT_TYPE_WORLD, STUDIOLIGHT_USER_DEFINED, STUDIOLIGHT_WORLD_FOLDER, and studiolights.
Referenced by BKE_studiolight_refresh(), and WM_init().
| struct ListBase * BKE_studiolight_listbase | ( | void | ) |
Definition at line 930 of file studiolight.cc.
References studiolights.
| StudioLight * BKE_studiolight_load | ( | const char * | filepath, |
| int | type ) |
Definition at line 991 of file studiolight.cc.
References studiolight_add_file(), and STUDIOLIGHT_USER_DEFINED.
| void BKE_studiolight_preview | ( | uint * | icon_buffer, |
| StudioLight * | sl, | ||
| int | icon_id_type ) |
Definition at line 935 of file studiolight.cc.
References studiolight_free_temp_resources(), STUDIOLIGHT_ICON_ID_TYPE_IRRADIANCE, STUDIOLIGHT_ICON_ID_TYPE_MATCAP, STUDIOLIGHT_ICON_ID_TYPE_MATCAP_FLIPPED, STUDIOLIGHT_ICON_ID_TYPE_RADIANCE, studiolight_irradiance_preview(), studiolight_matcap_preview(), and studiolight_radiance_preview().
Referenced by ui_studiolight_icon_job_exec().
| void BKE_studiolight_refresh | ( | void | ) |
Definition at line 1030 of file studiolight.cc.
References BKE_studiolight_free(), and BKE_studiolight_init().
| void BKE_studiolight_remove | ( | StudioLight * | sl | ) |
Definition at line 983 of file studiolight.cc.
References BLI_remlink(), StudioLight::flag, studiolight_free(), STUDIOLIGHT_USER_DEFINED, and studiolights.
| void BKE_studiolight_set_free_function | ( | StudioLight * | sl, |
| StudioLightFreeFunction * | free_function, | ||
| void * | data ) |
Definition at line 1036 of file studiolight.cc.
References data, StudioLight::free_function, and StudioLight::free_function_data.
Referenced by ui_icon_ensure_deferred(), and ui_studiolight_icon_job_end().
| StudioLight * BKE_studiolight_studio_edit_get | ( | void | ) |
Only useful for workbench while editing the user-preferences.
Definition at line 1019 of file studiolight.cc.
References StudioLight::flag, StudioLight::light, StudioLight::light_ambient, STUDIOLIGHT_SPECULAR_HIGHLIGHT_PASS, and STUDIOLIGHT_TYPE_STUDIO.
Referenced by blender::workbench::SceneResources::init().
| void BKE_studiolight_unset_icon_id | ( | StudioLight * | sl, |
| int | icon_id ) |
Definition at line 1044 of file studiolight.cc.
References BLI_assert, StudioLight::icon_id_irradiance, StudioLight::icon_id_matcap, StudioLight::icon_id_matcap_flipped, and StudioLight::icon_id_radiance.
Referenced by icon_free_data().