Blender  V3.3
Functions | Variables
FX_shader_swirl.c File Reference
#include <stdio.h>
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BLI_math_base.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_lib_query.h"
#include "BKE_modifier.h"
#include "BKE_screen.h"
#include "BKE_shader_fx.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "FX_shader_types.h"
#include "FX_ui_common.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"

Go to the source code of this file.

Functions

static void initData (ShaderFxData *md)
 
static void copyData (const ShaderFxData *md, ShaderFxData *target)
 
static void updateDepsgraph (ShaderFxData *fx, const ModifierUpdateDepsgraphContext *ctx)
 
static bool isDisabled (ShaderFxData *fx, int UNUSED(userRenderParams))
 
static void foreachIDLink (ShaderFxData *fx, Object *ob, IDWalkFunc walk, void *userData)
 
static void panel_draw (const bContext *UNUSED(C), Panel *panel)
 
static void panelRegister (ARegionType *region_type)
 

Variables

ShaderFxTypeInfo shaderfx_Type_Swirl
 

Function Documentation

◆ copyData()

static void copyData ( const ShaderFxData md,
ShaderFxData target 
)
static

Definition at line 44 of file FX_shader_swirl.c.

References BKE_shaderfx_copydata_generic().

◆ foreachIDLink()

static void foreachIDLink ( ShaderFxData fx,
Object ob,
IDWalkFunc  walk,
void userData 
)
static

Definition at line 65 of file FX_shader_swirl.c.

References IDWALK_CB_NOP, and SwirlShaderFxData::object.

◆ initData()

static void initData ( ShaderFxData md)
static

Definition at line 37 of file FX_shader_swirl.c.

References SwirlShaderFxData::angle, M_PI_2, and SwirlShaderFxData::radius.

◆ isDisabled()

static bool isDisabled ( ShaderFxData fx,
int   UNUSEDuserRenderParams 
)
static

Definition at line 58 of file FX_shader_swirl.c.

References SwirlShaderFxData::object.

◆ panel_draw()

static void panel_draw ( const bContext UNUSEDC,
Panel panel 
)
static

◆ panelRegister()

static void panelRegister ( ARegionType region_type)
static

Definition at line 87 of file FX_shader_swirl.c.

References eShaderFxType_Swirl, panel_draw(), and shaderfx_panel_register().

◆ updateDepsgraph()

static void updateDepsgraph ( ShaderFxData fx,
const ModifierUpdateDepsgraphContext ctx 
)
static

Variable Documentation

◆ shaderfx_Type_Swirl

ShaderFxTypeInfo shaderfx_Type_Swirl
Initial value:
= {
N_("Swirl"),
"SwirlShaderFxData",
0,
}
@ eShaderFxType_GpencilType
Definition: BKE_shader_fx.h:35
struct SwirlShaderFxData SwirlShaderFxData
static void initData(ShaderFxData *md)
static void updateDepsgraph(ShaderFxData *fx, const ModifierUpdateDepsgraphContext *ctx)
static bool isDisabled(ShaderFxData *fx, int UNUSED(userRenderParams))
static void panelRegister(ARegionType *region_type)
static void foreachIDLink(ShaderFxData *fx, Object *ob, IDWalkFunc walk, void *userData)
static void copyData(const ShaderFxData *md, ShaderFxData *target)
#define N_(msgid)

Definition at line 92 of file FX_shader_swirl.c.