|
Blender V5.3
|
#include "BKE_studiolight.h"#include "BKE_appdir.hh"#include "BKE_icons.hh"#include "BLI_dynstr.hh"#include "BLI_fileops.hh"#include "BLI_fileops_types.hh"#include "BLI_linklist.hh"#include "BLI_listbase.hh"#include "BLI_math_color_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_path_utils.hh"#include "BLI_string.hh"#include "BLI_string_utf8.hh"#include "CLG_log.h"#include "DNA_color_types.h"#include "DNA_listBase.h"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_interp.hh"#include "IMB_openexr.hh"#include "GPU_texture.hh"#include "MEM_guardedalloc.h"#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | STUDIOLIGHT_PASSNAME_DIFFUSE "diffuse" |
| #define | STUDIOLIGHT_PASSNAME_SPECULAR "specular" |
| #define | ITER_PIXELS(type, src, channels, width, height) |
| #define | ITER_PIXELS_END |
| #define | IMB_SAFE_FREE(p) |
| #define | GPU_TEXTURE_SAFE_FREE(p) |
| #define | STUDIOLIGHT_DELETE_ICON(s) |
| #define | STUDIOLIGHT_FILE_VERSION 1 |
| #define | READ_VAL(type, parser, id, val, lines) |
| #define | READ_FVAL(id, val, lines) |
| #define | READ_IVAL(id, val, lines) |
| #define | READ_VEC3(id, val, lines) |
| #define | READ_SOLIDLIGHT(sl, i, lines) |
| #define | WRITE_FVAL(str, id, val) |
| #define | WRITE_IVAL(str, id, val) |
| #define | WRITE_VEC3(str, id, val) |
| #define | WRITE_SOLIDLIGHT(str, sl, i) |
| #define | STUDIOLIGHT_DIAMETER 0.95f |
| #define | RESCALE_COORD(x) |
Variables | |
| static ListBaseT< StudioLight > | blender::studiolights |
| static int | blender::last_studiolight_id = 0 |
| static const char * | blender::STUDIOLIGHT_LIGHTS_FOLDER = "studiolights" SEP_STR "studio" SEP_STR |
| static const char * | blender::STUDIOLIGHT_WORLD_FOLDER = "studiolights" SEP_STR "world" SEP_STR |
| static const char * | blender::STUDIOLIGHT_MATCAP_FOLDER = "studiolights" SEP_STR "matcap" SEP_STR |
| static const char * | blender::STUDIOLIGHT_WORLD_DEFAULT = "forest.exr" |
| static const char * | blender::STUDIOLIGHT_MATCAP_DEFAULT = "basic_1.exr" |
| #define GPU_TEXTURE_SAFE_FREE | ( | p | ) |
Definition at line 96 of file studiolight.cc.
Referenced by blender::studiolight_free_gpu_textures().
| #define IMB_SAFE_FREE | ( | p | ) |
Definition at line 88 of file studiolight.cc.
Referenced by blender::studiolight_free_image_buffers().
| #define ITER_PIXELS | ( | type, | |
| src, | |||
| channels, | |||
| width, | |||
| height ) |
Iter on all pixel giving texel center position and pixel pointer.
Arguments type : type of src. src : source buffer. channels : number of channels per pixel.
Others x, y : normalized UV coordinate [0..1] of the current pixel center. texel_size[2] : UV size of a pixel in this texture. pixel[] : pointer to the current pixel.
Definition at line 71 of file studiolight.cc.
Referenced by blender::studiolight_irradiance_preview(), blender::studiolight_matcap_preview(), and blender::studiolight_radiance_preview().
| #define ITER_PIXELS_END |
Definition at line 81 of file studiolight.cc.
Referenced by blender::studiolight_irradiance_preview(), blender::studiolight_matcap_preview(), and blender::studiolight_radiance_preview().
| #define READ_FVAL | ( | id, | |
| val, | |||
| lines ) |
Definition at line 198 of file studiolight.cc.
| #define READ_IVAL | ( | id, | |
| val, | |||
| lines ) |
Definition at line 199 of file studiolight.cc.
| #define READ_SOLIDLIGHT | ( | sl, | |
| i, | |||
| lines ) |
Definition at line 208 of file studiolight.cc.
Referenced by blender::studiolight_load_solid_light().
| #define READ_VAL | ( | type, | |
| parser, | |||
| id, | |||
| val, | |||
| lines ) |
Definition at line 187 of file studiolight.cc.
| #define READ_VEC3 | ( | id, | |
| val, | |||
| lines ) |
Definition at line 201 of file studiolight.cc.
Referenced by blender::studiolight_load_solid_light().
| #define RESCALE_COORD | ( | x | ) |
Definition at line 647 of file studiolight.cc.
Referenced by blender::studiolight_irradiance_preview(), blender::studiolight_matcap_preview(), and blender::studiolight_radiance_preview().
| #define STUDIOLIGHT_DELETE_ICON | ( | s | ) |
Referenced by blender::studiolight_free().
| #define STUDIOLIGHT_DIAMETER 0.95f |
Definition at line 645 of file studiolight.cc.
| #define STUDIOLIGHT_FILE_VERSION 1 |
Definition at line 185 of file studiolight.cc.
Referenced by blender::studiolight_write_solid_light().
| #define STUDIOLIGHT_PASSNAME_DIFFUSE "diffuse" |
Definition at line 46 of file studiolight.cc.
Referenced by blender::studiolight_load_equirect_image().
| #define STUDIOLIGHT_PASSNAME_SPECULAR "specular" |
Definition at line 47 of file studiolight.cc.
Referenced by blender::studiolight_load_equirect_image().
| #define WRITE_FVAL | ( | str, | |
| id, | |||
| val ) |
Definition at line 235 of file studiolight.cc.
| #define WRITE_IVAL | ( | str, | |
| id, | |||
| val ) |
Definition at line 236 of file studiolight.cc.
Referenced by blender::studiolight_write_solid_light().
| #define WRITE_SOLIDLIGHT | ( | str, | |
| sl, | |||
| i ) |
Definition at line 245 of file studiolight.cc.
Referenced by blender::studiolight_write_solid_light().
| #define WRITE_VEC3 | ( | str, | |
| id, | |||
| val ) |
Definition at line 238 of file studiolight.cc.
Referenced by blender::studiolight_write_solid_light().