15#define DNA_DEPRECATED_ALLOW
62 std::optional<Library *> owner_library,
87 flag_embedded_id_data);
140 la->energy_deprecated /=
M_PI_4;
152 writer,
reinterpret_cast<bNodeTree *
>(temp_embedded_id_buffer.
get()));
221 float temperature_color[4];
232 switch (light.
type) {
238 const float size_x = light.
area_size * scale.x;
244 float area = size_x * size_y;
255 const float radius = light.
radius;
void BKE_icon_id_delete(struct ID *id)
@ IDTYPE_FLAGS_APPEND_IS_REUSABLE
struct ID * BKE_id_copy_in_lib(Main *bmain, std::optional< Library * > owner_library, const ID *id, std::optional< const ID * > new_owner_id, ID **new_id_p, int flag)
void * BKE_id_new(Main *bmain, short type, const char *name)
@ LIB_ID_CREATE_NO_ALLOCATE
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void BKE_id_blend_write(BlendWriter *writer, ID *id)
#define BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data_, func_call_)
void BKE_library_foreach_ID_embedded(LibraryForeachIDData *data, ID **id_pp)
General operations, lookup, etc. for blender lights.
void BKE_previewimg_blend_write(BlendWriter *writer, const PreviewImage *prv)
void BKE_previewimg_free(PreviewImage **prv)
void BKE_previewimg_blend_read(BlendDataReader *reader, PreviewImage *prv)
void BKE_previewimg_id_copy(ID *new_id, const ID *old_id)
#define BLI_assert_unreachable()
#define MEMCMP_STRUCT_AFTER_IS_ZERO(struct_var, member)
#define MEMCPY_STRUCT_AFTER(struct_dst, struct_src, member)
#define BLO_write_id_struct(writer, struct_name, id_address, id)
#define BLO_read_struct(reader, struct_name, ptr_p)
#define BLO_write_struct_at_address(writer, struct_name, address, data_ptr)
#define BLT_I18NCONTEXT_ID_LIGHT
void DEG_debug_print_eval(Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address)
#define DNA_struct_default_get(struct_name)
static double angle(const Eigen::Vector3d &v1, const Eigen::Vector3d &v2)
void IMB_colormanagement_blackbody_temperature_to_rgb(float r_dest[4], float value)
Read Guarded memory(de)allocation.
static void light_foreach_id(ID *id, LibraryForeachIDData *data)
blender::float3 BKE_light_color(const Light &light)
void BKE_light_eval(Depsgraph *depsgraph, Light *la)
static void light_blend_read_data(BlendDataReader *reader, ID *id)
static void light_copy_data(Main *bmain, std::optional< Library * > owner_library, ID *id_dst, const ID *id_src, const int flag)
static void light_foreach_working_space_color(ID *id, const IDTypeForeachColorFunctionCallback &fn)
float BKE_light_area(const Light &light, const blender::float4x4 &object_to_world)
static void light_blend_write(BlendWriter *writer, ID *id, const void *id_address)
static void light_free_data(ID *id)
float BKE_light_power(const Light &light)
Light * BKE_light_add(Main *bmain, const char *name)
static void light_init_data(ID *id)
BMesh const char void * data
BPy_StructRNA * depsgraph
void MEM_freeN(void *vmemh)
void node_tree_blend_write(BlendWriter *writer, bNodeTree *ntree)
bNodeTree * node_tree_localize(bNodeTree *ntree, std::optional< ID * > new_owner_id)
void node_tree_free_embedded_tree(bNodeTree *ntree)
VecBase< T, 3 > to_scale(const MatBase< T, NumCol, NumRow > &mat)
MatBase< float, 4, 4 > float4x4
MatBase< float, 3, 3 > float3x3
VecBase< float, 3 > float3
const blender::FunctionRef< void(float rgb[3])> single
struct PreviewImage * preview
struct bNodeTree * nodetree
const MatView< T, ViewNumCol, ViewNumRow, NumCol, NumRow, SrcStartCol, SrcStartRow, Alignment > view() const