Blender
V3.3
|
#include "DRW_render.h"
#include "DNA_meta_types.h"
#include "BKE_object.h"
#include "DEG_depsgraph_query.h"
#include "ED_mball.h"
#include "overlay_private.h"
Go to the source code of this file.
Macros | |
#define | BUF_INSTANCE DRW_shgroup_call_buffer_instance |
Functions | |
void | OVERLAY_metaball_cache_init (OVERLAY_Data *vedata) |
static void | metaball_instance_data_set (BoneInstanceData *data, Object *ob, const float *pos, const float radius, const float color[4]) |
void | OVERLAY_edit_metaball_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_metaball_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_metaball_draw (OVERLAY_Data *vedata) |
void | OVERLAY_metaball_in_front_draw (OVERLAY_Data *vedata) |
#define BUF_INSTANCE DRW_shgroup_call_buffer_instance |
|
static |
Definition at line 43 of file overlay_metaball.c.
References color, data, mul_v3_m4v3(), mul_v3_v3fl(), Object::obmat, OVERLAY_bone_instance_data_set_color(), and pos.
Referenced by OVERLAY_edit_metaball_cache_populate(), and OVERLAY_metaball_cache_populate().
void OVERLAY_edit_metaball_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 55 of file overlay_metaball.c.
References atanf, DRW_Global::block, color, GlobalsUboStorage::color_mball_radius, GlobalsUboStorage::color_mball_radius_select, GlobalsUboStorage::color_mball_stiffness, GlobalsUboStorage::color_mball_stiffness_select, Object::data, DRW_buffer_add_entry_struct(), DRW_select_load_id(), DRW_state_is_select(), Object::dtx, MetaBall::editelems, float(), G_draw, OVERLAY_PrivateData::handle, LISTBASE_FOREACH, M_PI_2, MB_SCALE_RAD, OVERLAY_PrivateData::mball, MBALLSEL_RADIUS, MBALLSEL_STIFF, metaball_instance_data_set(), OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, Object::runtime, SELECT, Object_Runtime::select_id, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_metaball_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 20 of file overlay_metaball.c.
References DRW_Global::block_ubo, BUF_INSTANCE, OVERLAY_PrivateData::clipping_state, DRW_cache_bone_point_wire_outline_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, G_draw, OVERLAY_PrivateData::handle, OVERLAY_InstanceFormats::instance_bone, OVERLAY_PrivateData::mball, OVERLAY_PassList::metaball_ps, OVERLAY_shader_armature_sphere(), OVERLAY_shader_instance_formats_get(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_metaball_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 102 of file overlay_metaball.c.
References color, Object::data, DRW_buffer_add_entry_struct(), DRW_context_state_get(), DRW_object_wire_theme_get(), Object::dtx, MetaBall::elems, OVERLAY_PrivateData::handle, LISTBASE_FOREACH, OVERLAY_PrivateData::mball, metaball_instance_data_set(), OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, OVERLAY_Data::stl, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_metaball_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 120 of file overlay_metaball.c.
References DRW_draw_pass(), OVERLAY_PassList::metaball_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_metaball_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 127 of file overlay_metaball.c.
References DRW_draw_pass(), OVERLAY_PassList::metaball_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().