28#define SHADER_FX_ACTIVE(_fx, _is_render) \
29 ((((_fx)->mode & eShaderFxMode_Realtime) && (_is_render == false)) || \
30 (((_fx)->mode & eShaderFxMode_Render) && (_is_render == true)))
31#define SHADER_FX_EDIT(_fx, _is_edit) ((((_fx)->mode & eShaderFxMode_Editmode) == 0) && (_is_edit))
63 const char *propname);
139#define SHADERFX_TYPE_PANEL_PREFIX "FX_PT_"
175void BKE_shaderfx_copy(ListBaseT<ShaderFxData> *dst,
const ListBaseT<ShaderFxData> *src);
185 ListBaseT<ShaderFxData> *lb,
These structs are the foundation for all linked lists in the library system.
void BKE_shaderfx_foreach_ID_link(Object *ob, ShaderFxIDWalkFunc walk, void *user_data)
ShaderFxData * BKE_shaderfx_new(ShaderFxType type)
void BKE_shaderfx_blend_write(BlendWriter *writer, ListBaseT< ShaderFxData > *fxbase)
void BKE_shaderfx_blend_read_data(BlendDataReader *reader, ListBaseT< ShaderFxData > *lb, Object *ob)
void(*) ShaderFxTexWalkFunc(void *user_data, Object *ob, ShaderFxData *fx, const char *propname)
ShaderFxData * BKE_shaderfx_findby_type(Object *ob, ShaderFxType type)
bool BKE_shaderfx_depends_ontime(ShaderFxData *fx)
void BKE_shaderfx_copydata_ex(ShaderFxData *fx, ShaderFxData *target, int flag)
void BKE_shaderfx_unique_name(ListBaseT< ShaderFxData > *shaders, ShaderFxData *fx)
bool BKE_shaderfx_has_gpencil(const Object *ob)
@ eShaderFxType_GpencilType
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_NoUserAdd
@ eShaderFxTypeFlag_SupportsEditmode
@ eShaderFxTypeFlag_Single
@ eShaderFxTypeFlag_EnableInEditmode
void BKE_shaderfx_copydata(ShaderFxData *fx, ShaderFxData *target)
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(*) panel_register(ARegionType *region_type)
void(*) foreach_ID_link(ShaderFxData *fx, Object *ob, ShaderFxIDWalkFunc walk, void *user_data)
void(*) foreach_working_space_color(ShaderFxData *fx, const IDTypeForeachColorFunctionCallback &func)
void(*) update_depsgraph(ShaderFxData *fx, const ModifierUpdateDepsgraphContext *ctx)
bool(*) is_disabled(ShaderFxData *fx, bool use_render_params)
void(*) init_data(ShaderFxData *fx)
bool(*) depends_on_time(ShaderFxData *fx)
void(*) free_data(ShaderFxData *fx)
void(*) copy_data(const ShaderFxData *fx, ShaderFxData *target)