Blender V4.3
FX_shader_swirl.cc File Reference
#include <cstdio>
#include "DNA_gpencil_legacy_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.hh"
#include "BKE_context.hh"
#include "BKE_lib_query.hh"
#include "BKE_modifier.hh"
#include "BKE_screen.hh"
#include "BKE_shader_fx.h"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "FX_shader_types.h"
#include "FX_ui_common.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"

Go to the source code of this file.

Functions

static void init_data (ShaderFxData *md)
 
static void copy_data (const ShaderFxData *md, ShaderFxData *target)
 
static void update_depsgraph (ShaderFxData *fx, const ModifierUpdateDepsgraphContext *ctx)
 
static bool is_disabled (ShaderFxData *fx, bool)
 
static void foreach_ID_link (ShaderFxData *fx, Object *ob, IDWalkFunc walk, void *user_data)
 
static void panel_draw (const bContext *, Panel *panel)
 
static void panel_register (ARegionType *region_type)
 

Variables

ShaderFxTypeInfo shaderfx_Type_Swirl
 

Function Documentation

◆ copy_data()

static void copy_data ( const ShaderFxData * md,
ShaderFxData * target )
static

Definition at line 45 of file FX_shader_swirl.cc.

References BKE_shaderfx_copydata_generic().

◆ foreach_ID_link()

static void foreach_ID_link ( ShaderFxData * fx,
Object * ob,
IDWalkFunc walk,
void * user_data )
static

Definition at line 66 of file FX_shader_swirl.cc.

References IDWALK_CB_NOP, and SwirlShaderFxData::object.

◆ init_data()

static void init_data ( ShaderFxData * md)
static

Definition at line 38 of file FX_shader_swirl.cc.

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

◆ is_disabled()

static bool is_disabled ( ShaderFxData * fx,
bool  )
static

Definition at line 59 of file FX_shader_swirl.cc.

References SwirlShaderFxData::object.

◆ panel_draw()

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

◆ panel_register()

static void panel_register ( ARegionType * region_type)
static

Definition at line 88 of file FX_shader_swirl.cc.

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

◆ update_depsgraph()

Variable Documentation

◆ shaderfx_Type_Swirl

ShaderFxTypeInfo shaderfx_Type_Swirl
Initial value:
= {
N_("Swirl"),
"SwirlShaderFxData",
nullptr,
nullptr,
}
@ eShaderFxType_GpencilType
ShaderFxTypeFlag
struct SwirlShaderFxData SwirlShaderFxData
static void panel_register(ARegionType *region_type)
static void foreach_ID_link(ShaderFxData *fx, Object *ob, IDWalkFunc walk, void *user_data)
static void update_depsgraph(ShaderFxData *fx, const ModifierUpdateDepsgraphContext *ctx)
static void init_data(ShaderFxData *md)
static void copy_data(const ShaderFxData *md, ShaderFxData *target)
static bool is_disabled
#define N_(msgid)

Definition at line 93 of file FX_shader_swirl.cc.