Blender V5.3
BKE_light_linking.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12
13#include "DNA_collection_types.h" /* eCollectionLightLinkingState */
14
15namespace blender {
16
17struct ID;
18struct Main;
19struct Object;
20struct Collection;
21struct ReportList;
22struct Scene;
23struct ViewLayer;
24
29
33void BKE_light_linking_ensure(struct Object *object);
34
41void BKE_light_linking_copy(struct Object *object_dst,
42 const struct Object *object_src,
43 const int copy_flags);
44
50 Object &object_dst,
51 const Object &object_src,
52 LightLinkingType link_type);
54 Object &object_dst,
55 const Object &object_src);
57 Object &object_dst,
58 const Object &object_src);
59
66void BKE_light_linking_delete(struct Object *object, const int delete_flags);
67
71void BKE_light_linking_free_if_empty(struct Object *object);
72
77 LightLinkingType link_type);
78
89 struct Object *object,
90 LightLinkingType link_type);
91
102 struct Collection *new_collection,
103 LightLinkingType link_type);
105 struct Object *object,
106 struct Collection *new_collection,
107 LightLinkingType link_type);
108
115 struct Collection *collection,
116 struct ID *receiver,
117 const eCollectionLightLinkingState link_state);
119 struct Main *bmain,
120 struct Collection *collection,
121 struct ID *receiver,
122 const struct ID *before,
123 const eCollectionLightLinkingState link_state);
125 struct Main *bmain,
126 struct Collection *collection,
127 struct ID *receiver,
128 const struct ID *after,
129 const eCollectionLightLinkingState link_state);
130
147 struct Collection *collection,
148 struct ID *id,
149 struct ReportList *reports);
150
159 struct Object *emitter,
160 struct Object *receiver,
161 LightLinkingType link_type,
163
168 struct Scene *scene,
169 struct ViewLayer *view_layer,
170 struct Object *emitter,
171 LightLinkingType link_type);
172
173} // namespace blender
Object groups, one object can be in many groups at once.
BMesh Iterators.
struct Collection * BKE_light_linking_collection_new(struct Main *bmain, struct Object *object, LightLinkingType link_type)
void BKE_light_linking_copy(struct Object *object_dst, const struct Object *object_src, const int copy_flags)
void BKE_light_linking_add_receiver_to_collection_after(struct Main *bmain, struct Collection *collection, struct ID *receiver, const struct ID *after, const eCollectionLightLinkingState link_state)
void BKE_light_linking_copy_collection(Main *bmain, Object &object_dst, const Object &object_src, LightLinkingType link_type)
void BKE_light_linking_free_if_empty(struct Object *object)
void BKE_light_linking_delete(struct Object *object, const int delete_flags)
void BKE_light_linking_copy_receiver_collection(Main *bmain, Object &object_dst, const Object &object_src)
void BKE_light_linking_collection_assign_only(struct Object *object, struct Collection *new_collection, LightLinkingType link_type)
void BKE_light_linking_copy_blocker_collection(Main *bmain, Object &object_dst, const Object &object_src)
struct Collection * BKE_light_linking_collection_get(const struct Object *object, LightLinkingType link_type)
void BKE_light_linking_select_receivers_of_emitter(const Main &bmain, struct Scene *scene, struct ViewLayer *view_layer, struct Object *emitter, LightLinkingType link_type)
void BKE_light_linking_ensure(struct Object *object)
bool BKE_light_linking_unlink_id_from_collection(struct Main *bmain, struct Collection *collection, struct ID *id, struct ReportList *reports)
void BKE_light_linking_add_receiver_to_collection_before(struct Main *bmain, struct Collection *collection, struct ID *receiver, const struct ID *before, const eCollectionLightLinkingState link_state)
void BKE_light_linking_link_receiver_to_emitter(struct Main *bmain, struct Object *emitter, struct Object *receiver, LightLinkingType link_type, eCollectionLightLinkingState link_state)
void BKE_light_linking_add_receiver_to_collection(struct Main *bmain, struct Collection *collection, struct ID *receiver, const eCollectionLightLinkingState link_state)
void BKE_light_linking_collection_assign(struct Main *bmain, struct Object *object, struct Collection *new_collection, LightLinkingType link_type)