Blender
V3.3
|
#include "DRW_render.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "DNA_armature_types.h"
#include "DEG_depsgraph_query.h"
#include "GPU_batch.h"
#include "UI_resources.h"
#include "draw_manager_text.h"
#include "overlay_private.h"
Go to the source code of this file.
Functions | |
void | OVERLAY_motion_path_cache_init (OVERLAY_Data *vedata) |
static GPUVertBuf * | mpath_vbo_get (bMotionPath *mpath) |
static GPUBatch * | mpath_batch_line_get (bMotionPath *mpath) |
static GPUBatch * | mpath_batch_points_get (bMotionPath *mpath) |
static void | motion_path_get_frame_range_to_draw (bAnimVizSettings *avs, bMotionPath *mpath, int current_frame, int *r_start, int *r_end, int *r_step) |
static void | motion_path_cache (OVERLAY_Data *vedata, Object *ob, bPoseChannel *pchan, bAnimVizSettings *avs, bMotionPath *mpath) |
void | OVERLAY_motion_path_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_motion_path_draw (OVERLAY_Data *vedata) |
|
static |
Definition at line 109 of file overlay_motion_path.c.
References Object::base_flag, BASE_SELECTED, BLI_snprintf_rlen(), bPoseChannel::bone, BONE_SELECTED, bMotionPathVert::co, col, bMotionPath::color, color, DEG_get_ctime(), DRWContextState::depsgraph, DRW_context_state_get(), DRW_shgroup_call_range(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_ivec4_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, equals_v3v3(), bMotionPathVert::flag, bMotionPath::flag, Bone::flag, len, bMotionPath::line_thickness, max_ii(), motion_path_get_frame_range_to_draw(), OVERLAY_PrivateData::motion_path_lines_grp, OVERLAY_PrivateData::motion_path_points_grp, MOTIONPATH_FLAG_CUSTOM, MOTIONPATH_FLAG_LINES, MOTIONPATH_VERT_KEY, MOTIONPATH_VIEW_FNUMS, MOTIONPATH_VIEW_KFNOS, MOTIONPATH_VIEW_KFRAS, mpath_batch_line_get(), mpath_batch_points_get(), NULL, bAnimVizSettings::path_viewflag, OVERLAY_StorageList::pd, bMotionPath::points, bMotionPath::start_frame, OVERLAY_Data::stl, TH_TEXT_HI, TH_VERTEX_SELECT, and UI_GetThemeColor3ubv().
Referenced by OVERLAY_motion_path_cache_populate().
|
static |
Definition at line 79 of file overlay_motion_path.c.
References CLAMP, bMotionPath::end_frame, max_ii(), MOTIONPATH_TYPE_ACFRA, bAnimVizSettings::path_ac, bAnimVizSettings::path_bc, bAnimVizSettings::path_ef, bAnimVizSettings::path_sf, bAnimVizSettings::path_step, bAnimVizSettings::path_type, bMotionPath::start_frame, and SWAP.
Referenced by motion_path_cache().
|
static |
Definition at line 63 of file overlay_motion_path.c.
References bMotionPath::batch_line, GPU_batch_create, GPU_PRIM_LINE_STRIP, mpath_vbo_get(), and NULL.
Referenced by motion_path_cache().
|
static |
Definition at line 71 of file overlay_motion_path.c.
References bMotionPath::batch_points, GPU_batch_create, GPU_PRIM_POINTS, mpath_vbo_get(), and NULL.
Referenced by motion_path_cache().
|
static |
Definition at line 46 of file overlay_motion_path.c.
References GPU_COMP_F32, GPU_COMP_I32, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertformat_attr_add(), bMotionPath::length, bMotionPath::points, and bMotionPath::points_vbo.
Referenced by mpath_batch_line_get(), and mpath_batch_points_get().
void OVERLAY_motion_path_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 25 of file overlay_motion_path.c.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_WRITE_COLOR, G_draw, OVERLAY_PrivateData::motion_path_lines_grp, OVERLAY_PrivateData::motion_path_points_grp, OVERLAY_PassList::motion_paths_ps, OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_motion_path_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 196 of file overlay_motion_path.c.
References bPose::avs, Object::avs, bPose::chanbase, DRW_context_state_get(), LISTBASE_FOREACH, motion_path_cache(), Object::mpath, NULL, OB_ARMATURE, OVERLAY_armature_is_pose_mode(), Object::pose, and Object::type.
Referenced by OVERLAY_cache_populate().
void OVERLAY_motion_path_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 215 of file overlay_motion_path.c.
References DRW_draw_pass(), OVERLAY_PassList::motion_paths_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().