Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_shader_swirl.c
| Show All 9 Lines | |||||
| #include "DNA_gpencil_types.h" | #include "DNA_gpencil_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "BLI_math_base.h" | #include "BLI_math_base.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLT_translation.h" | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_lib_query.h" | #include "BKE_lib_query.h" | ||||
| #include "BKE_modifier.h" | #include "BKE_modifier.h" | ||||
| #include "BKE_screen.h" | #include "BKE_screen.h" | ||||
| #include "BKE_shader_fx.h" | #include "BKE_shader_fx.h" | ||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| ▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| shaderfx_panel_register(region_type, eShaderFxType_Swirl, panel_draw); | shaderfx_panel_register(region_type, eShaderFxType_Swirl, panel_draw); | ||||
| } | } | ||||
| ShaderFxTypeInfo shaderfx_Type_Swirl = { | ShaderFxTypeInfo shaderfx_Type_Swirl = { | ||||
| /* name */ "Swirl", | /* name */ N_("Swirl"), | ||||
| /* structName */ "SwirlShaderFxData", | /* structName */ "SwirlShaderFxData", | ||||
| /* structSize */ sizeof(SwirlShaderFxData), | /* structSize */ sizeof(SwirlShaderFxData), | ||||
| /* type */ eShaderFxType_GpencilType, | /* type */ eShaderFxType_GpencilType, | ||||
| /* flags */ 0, | /* flags */ 0, | ||||
| /* copyData */ copyData, | /* copyData */ copyData, | ||||
| /* initData */ initData, | /* initData */ initData, | ||||
| /* freeData */ NULL, | /* freeData */ NULL, | ||||
| /* isDisabled */ isDisabled, | /* isDisabled */ isDisabled, | ||||
| /* updateDepsgraph */ updateDepsgraph, | /* updateDepsgraph */ updateDepsgraph, | ||||
| /* dependsOnTime */ NULL, | /* dependsOnTime */ NULL, | ||||
| /* foreachIDLink */ foreachIDLink, | /* foreachIDLink */ foreachIDLink, | ||||
| /* panelRegister */ panelRegister, | /* panelRegister */ panelRegister, | ||||
| }; | }; | ||||