Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_shader_wave.c
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | static void initData(ShaderFxData *fx) | ||||
| gpfx->orientation = 1; | gpfx->orientation = 1; | ||||
| } | } | ||||
| static void copyData(const ShaderFxData *md, ShaderFxData *target) | static void copyData(const ShaderFxData *md, ShaderFxData *target) | ||||
| { | { | ||||
| BKE_shaderfx_copydata_generic(md, target); | BKE_shaderfx_copydata_generic(md, target); | ||||
| } | } | ||||
| static void panel_draw(const bContext *C, Panel *panel) | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ptr; | PointerRNA *ptr = shaderfx_panel_get_property_pointers(panel, NULL); | ||||
| shaderfx_panel_get_property_pointers(C, panel, NULL, &ptr); | |||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiItemR(layout, &ptr, "orientation", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | uiItemR(layout, ptr, "orientation", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "amplitude", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "amplitude", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "period", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "period", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "phase", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "phase", 0, NULL, ICON_NONE); | ||||
| shaderfx_panel_end(layout, &ptr); | shaderfx_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| shaderfx_panel_register(region_type, eShaderFxType_Wave, panel_draw); | shaderfx_panel_register(region_type, eShaderFxType_Wave, panel_draw); | ||||
| } | } | ||||
| ShaderFxTypeInfo shaderfx_Type_Wave = { | ShaderFxTypeInfo shaderfx_Type_Wave = { | ||||
| Show All 17 Lines | |||||