107 MEM_delete(fx->
error);
137 if (type < NUM_SHADER_FX_TYPES && type > 0 &&
shader_fx_types[type]->name[0] !=
'\0') {
172 const char *fx_src_data = (
reinterpret_cast<const char *
>(fx_src)) + data_size;
173 char *fx_dst_data = (
reinterpret_cast<char *
>(fx_dst)) + data_size;
175 memcpy(fx_dst_data, fx_src_data,
size_t(fxi->
struct_size) - data_size);
218 dst->clear_no_delete();
221 for (srcfx = src->first(), fx = dst->first(); srcfx && fx; srcfx = srcfx->
next, fx = fx->
next) {
230 for (; fx; fx = fx->
next) {
231 if (fx->
type == type) {
243 for (; fx; fx = fx->
next) {
260 if (fxbase ==
nullptr) {
266 if (fxi ==
nullptr) {
#define SHADERFX_TYPE_PANEL_PREFIX
#define STRNCPY_UTF8(dst, src)
#define BLI_string_join(...)
#define ID_IS_LINKED(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ UI_PANEL_DATA_EXPAND_ROOT
void BKE_shaderfx_foreach_ID_link(Object *ob, ShaderFxIDWalkFunc walk, void *user_data)
static void shaderfx_free_data_id_us_cb(void *, Object *, ID **idpoin, const LibraryForeachIDCallbackFlag cb_flag)
ShaderFxData * BKE_shaderfx_new(ShaderFxType type)
void void void void void void BLI_duplicatelist(ListBase *dst, const ListBase *src) ATTR_NONNULL(1
void BKE_shaderfx_blend_write(BlendWriter *writer, ListBaseT< ShaderFxData > *fxbase)
void BKE_shaderfx_blend_read_data(BlendDataReader *reader, ListBaseT< ShaderFxData > *lb, Object *ob)
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
ShaderFxData * BKE_shaderfx_findby_type(Object *ob, ShaderFxType type)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
@ eShaderFxFlag_OverrideLibrary_Local
bool BKE_shaderfx_depends_ontime(ShaderFxData *fx)
void BKE_shaderfx_copydata_ex(ShaderFxData *fx, ShaderFxData *target, int flag)
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
void BKE_shaderfx_unique_name(ListBaseT< ShaderFxData > *shaders, ShaderFxData *fx)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
bool BKE_shaderfx_has_gpencil(const Object *ob)
void BLO_read_struct_list_with_type_size(BlendDataReader *reader, size_t base_size, ListBase *list, FunctionRef< size_t(const void *data)> type_size_fn)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ eShaderFxType_GpencilType
static void shaderfx_copy_data_id_us_cb(void *, Object *, ID **idpoin, const LibraryForeachIDCallbackFlag cb_flag)
void BKE_shaderfx_free_ex(ShaderFxData *fx, int flag)
ShaderFxData * BKE_shaderfx_findby_name(Object *ob, const char *name)
void BKE_shaderfx_free(ShaderFxData *fx)
bool BKE_shaderfx_is_nonlocal_in_liboverride(const Object *ob, const ShaderFxData *shaderfx)
void BKE_shaderfx_panel_expand(ShaderFxData *fx)
@ eShaderFxTypeFlag_EnableInEditmode
void BKE_shaderfx_copydata(ShaderFxData *fx, ShaderFxData *target)
void shaderfx_type_init(ShaderFxTypeInfo *types[])
static ShaderFxTypeInfo * shader_fx_types[NUM_SHADER_FX_TYPES]
void BKE_shaderfx_copydata_generic(const ShaderFxData *fx_src, ShaderFxData *fx_dst)
LibraryForeachIDCallbackFlag
void(*) ShaderFxIDWalkFunc(void *user_data, Object *ob, ID **idpoin, LibraryForeachIDCallbackFlag cb_flag)
void BKE_shaderfx_copy(ListBaseT< ShaderFxData > *dst, const ListBaseT< ShaderFxData > *src)
void BKE_shaderfxType_panel_id(ShaderFxType type, char *r_idname)
const ShaderFxTypeInfo * BKE_shaderfx_get_info(ShaderFxType type)
void write_struct_by_name(const char *struct_name, const void *data, BlendStructWriterFn fn=nullptr)
ListBaseT< ShaderFxData > shader_fx
struct ShaderFxData * next
void(*) foreach_ID_link(ShaderFxData *fx, Object *ob, ShaderFxIDWalkFunc walk, void *user_data)
void(*) init_data(ShaderFxData *fx)
bool(*) depends_on_time(ShaderFxData *fx)
void(*) free_data(ShaderFxData *fx)
void(*) copy_data(const ShaderFxData *fx, ShaderFxData *target)