Blender V4.3
object_shader_fx.cc File Reference
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_grease_pencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_shader_fx_types.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_string_utf8.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_lib_id.hh"
#include "BKE_object.hh"
#include "BKE_report.hh"
#include "BKE_shader_fx.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "UI_interface.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "object_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::object
 

Functions

Public Api
ShaderFxDatablender::ed::object::shaderfx_add (ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
 
static bool UNUSED_FUNCTION blender::ed::object::object_has_shaderfx (const Object *ob, const ShaderFxData *exclude, ShaderFxType type)
 
static bool blender::ed::object::object_shaderfx_remove (Main *bmain, Object *ob, ShaderFxData *fx, bool *)
 
bool blender::ed::object::shaderfx_remove (ReportList *reports, Main *bmain, Object *ob, ShaderFxData *fx)
 
void blender::ed::object::shaderfx_clear (Main *bmain, Object *ob)
 
int blender::ed::object::shaderfx_move_up (ReportList *reports, Object *ob, ShaderFxData *fx)
 
int blender::ed::object::shaderfx_move_down (ReportList *reports, Object *ob, ShaderFxData *fx)
 
bool blender::ed::object::shaderfx_move_to_index (ReportList *reports, Object *ob, ShaderFxData *fx, int index)
 
void blender::ed::object::shaderfx_link (Object *dst, Object *src)
 
void blender::ed::object::shaderfx_copy (Object *dst, ShaderFxData *fx)
 
Generic Poll Callback Helpers
static bool blender::ed::object::edit_shaderfx_poll_generic (bContext *C, StructRNA *rna_type, int obtype_flag, const bool is_liboverride_allowed)
 
static bool blender::ed::object::edit_shaderfx_poll (bContext *C)
 
Add Effect Operator
static int blender::ed::object::shaderfx_add_exec (bContext *C, wmOperator *op)
 
static const EnumPropertyItemblender::ed::object::shaderfx_add_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
 
void blender::ed::object::OBJECT_OT_shaderfx_add (wmOperatorType *ot)
 
Generic Functions for Operators Using Names and Data Context
static void blender::ed::object::edit_shaderfx_properties (wmOperatorType *ot)
 
static void blender::ed::object::edit_shaderfx_report_property (wmOperatorType *ot)
 
static bool blender::ed::object::edit_shaderfx_invoke_properties (bContext *C, wmOperator *op, const wmEvent *event, int *r_retval)
 
static ShaderFxDatablender::ed::object::edit_shaderfx_property_get (wmOperator *op, Object *ob, int type)
 
Remove ShaderFX Operator
static int blender::ed::object::shaderfx_remove_exec (bContext *C, wmOperator *op)
 
static int blender::ed::object::shaderfx_remove_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::object::OBJECT_OT_shaderfx_remove (wmOperatorType *ot)
 
Move up ShaderFX Operator
static int blender::ed::object::shaderfx_move_up_exec (bContext *C, wmOperator *op)
 
static int blender::ed::object::shaderfx_move_up_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::object::OBJECT_OT_shaderfx_move_up (wmOperatorType *ot)
 
Move Down ShaderFX Operator
static int blender::ed::object::shaderfx_move_down_exec (bContext *C, wmOperator *op)
 
static int blender::ed::object::shaderfx_move_down_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::object::OBJECT_OT_shaderfx_move_down (wmOperatorType *ot)
 
Move ShaderFX to Index Operator
static int blender::ed::object::shaderfx_move_to_index_exec (bContext *C, wmOperator *op)
 
static int blender::ed::object::shaderfx_move_to_index_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::object::OBJECT_OT_shaderfx_move_to_index (wmOperatorType *ot)
 
Copy Shader Operator
static int blender::ed::object::shaderfx_copy_exec (bContext *C, wmOperator *op)
 
static int blender::ed::object::shaderfx_copy_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::object::OBJECT_OT_shaderfx_copy (wmOperatorType *ot)