160 strcat(r_idname, fxi->
name);
179 const char *fx_src_data = ((
const char *)fx_src) + data_size;
180 char *fx_dst_data = ((
char *)fx_dst) + data_size;
182 memcpy(fx_dst_data, fx_src_data, (
size_t)fxi->
struct_size - data_size);
228 for (srcfx =
src->first, fx = dst->
first; srcfx && fx; srcfx = srcfx->
next, fx = fx->
next) {
237 for (; fx; fx = fx->
next) {
250 for (; fx; fx = fx->
next) {
266 if (fxbase ==
NULL) {
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void id_us_min(struct ID *id)
void id_us_plus(struct ID *id)
General operations, lookup, etc. for blender objects.
void BKE_object_modifiers_lib_link_common(void *userData, struct Object *ob, struct ID **idpoin, int cb_flag)
@ eShaderFxType_GpencilType
void(* ShaderFxIDWalkFunc)(void *userData, struct Object *ob, struct ID **idpoin, int cb_flag)
@ eShaderFxTypeFlag_EnableInEditmode
#define SHADERFX_TYPE_PANEL_PREFIX
#define LISTBASE_FOREACH(type, var, list)
void void void void void BLI_duplicatelist(struct ListBase *dst, const struct ListBase *src) ATTR_NONNULL(1
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void * BLI_findstring(const struct ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
bool BLI_uniquename(struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_len)
void BLO_write_struct_by_name(BlendWriter *writer, const char *struct_name, const void *data_ptr)
void BLO_read_list(BlendDataReader *reader, struct ListBase *list)
#define ID_IS_LINKED(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object is a sort of wrapper for general info.
@ UI_PANEL_DATA_EXPAND_ROOT
@ eShaderFxFlag_OverrideLibrary_Local
struct ShaderFxData ShaderFxData
void shaderfx_type_init(ShaderFxTypeInfo *types[])
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
SyclQueue void void * src
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void BKE_shaderfx_copydata(ShaderFxData *fx, ShaderFxData *target)
void BKE_shaderfx_copydata_generic(const ShaderFxData *fx_src, ShaderFxData *fx_dst)
void BKE_shaderfx_init(void)
void BKE_shaderfx_foreach_ID_link(Object *ob, ShaderFxIDWalkFunc walk, void *userData)
void BKE_shaderfxType_panel_id(ShaderFxType type, char *r_idname)
void BKE_shaderfx_blend_write(BlendWriter *writer, ListBase *fxbase)
ShaderFxData * BKE_shaderfx_findby_name(Object *ob, const char *name)
const ShaderFxTypeInfo * BKE_shaderfx_get_info(ShaderFxType type)
void BKE_shaderfx_panel_expand(ShaderFxData *fx)
void BKE_shaderfx_blend_read_data(BlendDataReader *reader, ListBase *lb)
static void shaderfx_copy_data_id_us_cb(void *UNUSED(userData), Object *UNUSED(ob), ID **idpoin, int cb_flag)
void BKE_shaderfx_copy(ListBase *dst, const ListBase *src)
bool BKE_shaderfx_unique_name(ListBase *shaders, ShaderFxData *fx)
static void shaderfx_free_data_id_us_cb(void *UNUSED(userData), Object *UNUSED(ob), ID **idpoin, int cb_flag)
void BKE_shaderfx_free_ex(ShaderFxData *fx, const int flag)
bool BKE_shaderfx_has_gpencil(const Object *ob)
void BKE_shaderfx_blend_read_lib(BlendLibReader *reader, Object *ob)
bool BKE_shaderfx_depends_ontime(ShaderFxData *fx)
bool BKE_shaderfx_is_nonlocal_in_liboverride(const Object *ob, const ShaderFxData *shaderfx)
static ShaderFxTypeInfo * shader_fx_types[NUM_SHADER_FX_TYPES]
ShaderFxData * BKE_shaderfx_findby_type(Object *ob, ShaderFxType type)
ShaderFxData * BKE_shaderfx_new(int type)
void BKE_shaderfx_copydata_ex(ShaderFxData *fx, ShaderFxData *target, const int flag)
void BKE_shaderfx_free(ShaderFxData *fx)
struct ShaderFxData * next
void(* freeData)(struct ShaderFxData *fx)
void(* copyData)(const struct ShaderFxData *fx, struct ShaderFxData *target)
void(* foreachIDLink)(struct ShaderFxData *fx, struct Object *ob, ShaderFxIDWalkFunc walk, void *userData)
bool(* dependsOnTime)(struct ShaderFxData *fx)
void(* initData)(struct ShaderFxData *fx)