Blender
V3.3
|
#include "DRW_render.h"
#include "UI_resources.h"
#include "BKE_anim_path.h"
#include "BKE_camera.h"
#include "BKE_constraint.h"
#include "BKE_curve.h"
#include "BKE_global.h"
#include "BKE_mball.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_movieclip.h"
#include "BKE_object.h"
#include "BKE_tracking.h"
#include "BLI_listbase.h"
#include "DNA_camera_types.h"
#include "DNA_constraint_types.h"
#include "DNA_curve_types.h"
#include "DNA_fluid_types.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_lightprobe_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_modifier_types.h"
#include "DNA_pointcache_types.h"
#include "DNA_rigidbody_types.h"
#include "DEG_depsgraph_query.h"
#include "ED_view3d.h"
#include "overlay_private.h"
#include "draw_common.h"
#include "draw_manager_text.h"
Go to the source code of this file.
Classes | |
union | OVERLAY_CameraInstanceData |
Macros | |
#define | BUF_INSTANCE DRW_shgroup_call_buffer_instance |
#define | BUF_POINT(grp, format) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_POINTS) |
#define | BUF_LINE(grp, format) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_LINES) |
Camera | |
typedef union OVERLAY_CameraInstanceData | OVERLAY_CameraInstanceData |
static void | camera_view3d_reconstruction (OVERLAY_ExtraCallBuffers *cb, Scene *scene, View3D *v3d, Object *ob, const float color[4]) |
static float | camera_offaxis_shiftx_get (Scene *scene, Object *ob, const OVERLAY_CameraInstanceData *instdata, bool right_eye) |
static void | camera_stereoscopy_extra (OVERLAY_ExtraCallBuffers *cb, Scene *scene, View3D *v3d, Object *ob, const OVERLAY_CameraInstanceData *instdata) |
void | OVERLAY_camera_cache_populate (OVERLAY_Data *vedata, Object *ob) |
#define BUF_INSTANCE DRW_shgroup_call_buffer_instance |
#define BUF_LINE | ( | grp, | |
format | |||
) | DRW_shgroup_call_buffer(grp, format, GPU_PRIM_LINES) |
#define BUF_POINT | ( | grp, | |
format | |||
) | DRW_shgroup_call_buffer(grp, format, GPU_PRIM_POINTS) |
typedef union OVERLAY_CameraInstanceData OVERLAY_CameraInstanceData |
|
static |
Definition at line 984 of file overlay_extra.c.
References BKE_camera_multiview_shift_x(), CAM_S3D_OFFAXIS, CameraStereoSettings::convergence_mode, OVERLAY_CameraInstanceData::corner_x, Object::data, Scene::r, scene, Camera::shiftx, Camera::stereo, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, and width.
Referenced by camera_stereoscopy_extra(), and OVERLAY_camera_cache_populate().
|
static |
Draw the stereo 3d support elements (cameras, plane, volume). They are only visible when not looking through the camera:
Definition at line 1004 of file overlay_extra.c.
References add_v3_v3(), BKE_camera_multiview_model_matrix(), BKE_camera_multiview_model_matrix_scaled(), BKE_camera_multiview_render(), DRW_Global::block, CAM_S3D_OFFAXIS, CAM_S3D_PARALLEL, CAM_S3D_TOE, OVERLAY_ExtraCallBuffers::camera_frame, camera_offaxis_shiftx_get(), OVERLAY_ExtraCallBuffers::camera_volume, OVERLAY_ExtraCallBuffers::camera_volume_frame, OVERLAY_CameraInstanceData::center_x, OVERLAY_CameraInstanceData::center_y, Camera::clip_end, Camera::clip_start, OVERLAY_CameraInstanceData::color, GlobalsUboStorage::color_wire, CameraStereoSettings::convergence_distance, CameraStereoSettings::convergence_mode, copy_v2_fl2(), copy_v3_v3(), OVERLAY_CameraInstanceData::corner_x, OVERLAY_CameraInstanceData::corner_y, cross_v3_v3v3(), Object::data, OVERLAY_CameraInstanceData::depth, DRW_buffer_add_entry_struct(), DRW_state_is_select(), G_draw, madd_v3_v3fl(), OVERLAY_CameraInstanceData::mat, normalize_v3(), OVERLAY_extra_line_dashed(), OVERLAY_CameraInstanceData::pos, r, Scene::r, scene, Camera::stereo, View3D::stereo3d_convergence_alpha, View3D::stereo3d_flag, View3D::stereo3d_volume_alpha, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, V3D_S3D_DISPCAMERAS, V3D_S3D_DISPPLANE, V3D_S3D_DISPVOLUME, OVERLAY_CameraInstanceData::volume_end, OVERLAY_CameraInstanceData::volume_sta, and zero_v3().
Referenced by OVERLAY_camera_cache_populate().
|
static |
Definition at line 846 of file overlay_extra.c.
References Freestyle::a, BKE_movieclip_remap_scene_to_clip_frame(), BKE_object_movieclip_get(), BKE_tracking_camera_get_reconstructed_interpolate(), BKE_tracking_get_camera_object_matrix(), BKE_tracking_object_get_reconstruction(), BKE_tracking_object_get_tracks(), DRW_Global::block, View3D::bundle_drawtype, View3D::bundle_size, camera, color, GlobalsUboStorage::color_bundle_solid, GlobalsUboStorage::color_wire, copy_m4_m4(), copy_v3_v3(), DEG_get_ctime(), DRWContextState::depsgraph, DRW_buffer_add_entry, DRW_context_state_get(), DRW_select_load_id(), DRW_state_is_select(), DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, DRW_TEXT_CACHE_STRING_PTR, OVERLAY_ExtraCallBuffers::empty_sphere_solid, View3D::flag2, G_draw, invert_m4_m4(), LISTBASE_FOREACH, mul_m4_m4m4(), mul_m4_v3(), NULL, OB_EMPTY_SPHERE, OB_SOLID, MovieTracking::objects, Object::obmat, OVERLAY_empty_shape(), OVERLAY_extra_line(), reconstruction, Object::runtime, scene, Object_Runtime::select_id, View3D::shading, srgb_to_linearrgb_v3_v3(), TH_CAMERA_PATH, TH_SELECT, TH_TEXT, TRACK_CUSTOMCOLOR, TRACK_HAS_BUNDLE, TRACK_SELECTED, MovieClip::tracking, TRACKING_OBJECT_CAMERA, translate_m4(), View3DShading::type, UI_GetThemeColor4ubv(), v1, V3D_SHOW_BUNDLENAME, V3D_SHOW_CAMERAPATH, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_camera_cache_populate().
|
static |
Definition at line 342 of file overlay_extra.c.
References BKE_boundbox_calc_center_aabb(), BKE_boundbox_calc_size_aabb(), BKE_boundbox_init_from_minmax(), BKE_mball_is_basis(), BKE_object_boundbox_get(), center, color, copy_v2_v2(), copy_v3_v3(), DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_capsule_body, OVERLAY_ExtraCallBuffers::empty_capsule_cap, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_cylinder, OVERLAY_ExtraCallBuffers::empty_sphere, max, max_ff(), max_fff(), min, mul_m4_m4m4(), negate_v3(), NULL, OB_BOUND_BOX, OB_BOUND_CAPSULE, OB_BOUND_CONE, OB_BOUND_CYLINDER, OB_BOUND_SPHERE, OB_MBALL, Object::obmat, scale_m4_fl(), size(), size_to_mat4(), swap_v3_v3(), Object::type, and zero_v3().
Referenced by OVERLAY_collision(), and OVERLAY_extra_cache_populate().
void OVERLAY_camera_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 1104 of file overlay_extra.c.
References Camera::bg_images, BKE_camera_multiview_model_matrix(), BKE_camera_object_dof_distance(), BKE_camera_view_frame_ex(), BLI_listbase_is_empty(), CAM_SHOW_BG_IMAGE, CAM_SHOWLIMITS, CAM_SHOWMIST, View3D::camera, OVERLAY_ExtraCallBuffers::camera_distances, OVERLAY_ExtraCallBuffers::camera_frame, camera_offaxis_shiftx_get(), camera_stereoscopy_extra(), OVERLAY_ExtraCallBuffers::camera_tria, camera_view3d_reconstruction(), center, OVERLAY_CameraInstanceData::center_x, OVERLAY_CameraInstanceData::center_y, OVERLAY_CameraInstanceData::clip_end, Camera::clip_end, OVERLAY_CameraInstanceData::clip_sta, Camera::clip_start, OVERLAY_CameraInstanceData::color, copy_v3_fl(), copy_v3_fl3(), copy_v3_v3(), copy_v4_v4(), OVERLAY_CameraInstanceData::corner_x, OVERLAY_CameraInstanceData::corner_y, Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, OVERLAY_CameraInstanceData::depth, OVERLAY_CameraInstanceData::dist_color_id, Camera::drawsize, DRW_buffer_add_entry_struct(), DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_image_render(), DRW_state_is_select(), ELEM, fabsf, Camera::flag, View3D::flag2, OVERLAY_CameraInstanceData::focus, invert_v3(), len_v3(), OVERLAY_CameraInstanceData::mat, mid_v2_v2v2(), OVERLAY_CameraInstanceData::mist_end, OVERLAY_CameraInstanceData::mist_sta, World::mistdist, World::miststa, mul_v2_fl(), mul_v3_fl(), mul_v3_v3(), View3D::multiview_eye, normalize_m4_m4(), Object::obmat, OVERLAY_extra_call_buffer_get(), OVERLAY_image_camera_cache_populate(), RegionView3D::persp, Scene::r, R_MULTIVIEW, DRWContextState::rv3d, RV3D_CAMOB, SCE_VIEWS_FORMAT_STEREO_3D, RenderData::scemode, scene, DRWContextState::scene, View3D::stereo3d_flag, STEREO_LEFT_NAME, STEREO_RIGHT_ID, STEREO_RIGHT_NAME, sub_v2_v2v2(), DRWContextState::v3d, V3D_SHOW_RECONSTRUCTION, DRWContextState::view_layer, RenderData::views_format, world, and Scene::world.
Referenced by OVERLAY_cache_populate().
|
static |
Definition at line 424 of file overlay_extra.c.
References color, OB_BOUND_BOX, OB_BOUND_CAPSULE, OB_BOUND_CONE, OB_BOUND_CYLINDER, OB_BOUND_SPHERE, OVERLAY_bounds(), RB_SHAPE_BOX, RB_SHAPE_CAPSULE, RB_SHAPE_CONE, RB_SHAPE_CYLINDER, RB_SHAPE_SPHERE, Object::rigidbody_object, and RigidBodyOb::shape.
Referenced by OVERLAY_extra_cache_populate().
void OVERLAY_empty_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 313 of file overlay_extra.c.
References Object::base_flag, BASE_FROM_DUPLI, color, DRW_context_state_get(), DRW_object_wire_theme_get(), Object::empty_drawsize, Object::empty_drawtype, Object::instance_collection, OB_ARROWS, OB_CIRCLE, OB_CUBE, OB_DUPLICOLLECTION, OB_EMPTY_CONE, OB_EMPTY_IMAGE, OB_EMPTY_SPHERE, OB_PLAINAXES, OB_SINGLE_ARROW, Object::obmat, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), OVERLAY_image_empty_cache_populate(), Object::transflag, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_empty_shape | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | mat[4][4], | ||
const float | draw_size, | ||
const char | draw_type, | ||
const float | color[4] | ||
) |
Definition at line 275 of file overlay_extra.c.
References color, DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_axes, OVERLAY_ExtraCallBuffers::empty_circle, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_image_frame, OVERLAY_ExtraCallBuffers::empty_plain_axes, OVERLAY_ExtraCallBuffers::empty_single_arrow, OVERLAY_ExtraCallBuffers::empty_sphere, OB_ARROWS, OB_CIRCLE, OB_CUBE, OB_EMPTY_CONE, OB_EMPTY_IMAGE, OB_EMPTY_SPHERE, OB_PLAINAXES, OB_SINGLE_ARROW, and pack_fl_in_mat4().
Referenced by camera_view3d_reconstruction(), drw_shgroup_bone_axes(), drw_shgroup_bone_custom_empty(), OVERLAY_empty_cache_populate(), OVERLAY_image_empty_cache_populate(), and OVERLAY_lightprobe_cache_populate().
void OVERLAY_extra_blend_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1611 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_blend_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 47 of file overlay_extra.c.
References DRW_Global::block, DRW_Global::block_ubo, BUF_INSTANCE, BUF_LINE, BUF_POINT, OVERLAY_ExtraCallBuffers::camera_distances, OVERLAY_ExtraCallBuffers::camera_frame, OVERLAY_ExtraCallBuffers::camera_tria, OVERLAY_ExtraCallBuffers::camera_volume, OVERLAY_ExtraCallBuffers::camera_volume_frame, OVERLAY_ExtraCallBuffers::center_active, OVERLAY_ExtraCallBuffers::center_deselected, OVERLAY_ExtraCallBuffers::center_deselected_lib, OVERLAY_ExtraCallBuffers::center_selected, OVERLAY_ExtraCallBuffers::center_selected_lib, OVERLAY_PrivateData::clipping_state, GlobalsUboStorage::color_active, GlobalsUboStorage::color_deselect, GlobalsUboStorage::color_library, GlobalsUboStorage::color_library_select, GlobalsUboStorage::color_select, DefaultTextureList::depth, DRW_cache_bone_arrows_get(), DRW_cache_camera_distances_get(), DRW_cache_camera_frame_get(), DRW_cache_camera_tria_get(), DRW_cache_camera_tria_wire_get(), DRW_cache_camera_volume_get(), DRW_cache_camera_volume_wire_get(), DRW_cache_circle_get(), DRW_cache_empty_capsule_body_get(), DRW_cache_empty_capsule_cap_get(), DRW_cache_empty_cone_get(), DRW_cache_empty_cube_get(), DRW_cache_empty_cylinder_get(), DRW_cache_empty_sphere_get(), DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_vortex_get(), DRW_cache_field_wind_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_light_spot_volume_get(), DRW_cache_light_sun_lines_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), DRW_cache_lightprobe_planar_get(), DRW_cache_plain_axes_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_cache_single_arrow_get(), DRW_cache_speaker_get(), DRW_cache_sphere_get(), DRW_LOD_LOW, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_create_sub(), DRW_shgroup_state_disable(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_CULL_BACK, DRW_STATE_CULL_FRONT, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_fbo(), DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, OVERLAY_ExtraCallBuffers::empty_axes, OVERLAY_ExtraCallBuffers::empty_capsule_body, OVERLAY_ExtraCallBuffers::empty_capsule_cap, OVERLAY_ExtraCallBuffers::empty_circle, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_cylinder, OVERLAY_ExtraCallBuffers::empty_image_frame, OVERLAY_ExtraCallBuffers::empty_plain_axes, OVERLAY_ExtraCallBuffers::empty_single_arrow, OVERLAY_ExtraCallBuffers::empty_sphere, OVERLAY_ExtraCallBuffers::empty_sphere_solid, OVERLAY_PassList::extra_blend_ps, OVERLAY_PrivateData::extra_call_buffers, OVERLAY_PassList::extra_centers_ps, OVERLAY_ExtraCallBuffers::extra_dashed_lines, OVERLAY_PrivateData::extra_grid_grp, OVERLAY_PassList::extra_grid_ps, OVERLAY_ExtraCallBuffers::extra_lines, OVERLAY_ExtraCallBuffers::extra_loose_points, OVERLAY_ExtraCallBuffers::extra_points, OVERLAY_PassList::extra_ps, OVERLAY_ExtraCallBuffers::extra_wire, OVERLAY_ExtraCallBuffers::field_cone_limit, OVERLAY_ExtraCallBuffers::field_curve, OVERLAY_ExtraCallBuffers::field_force, OVERLAY_ExtraCallBuffers::field_sphere_limit, OVERLAY_ExtraCallBuffers::field_tube_limit, OVERLAY_ExtraCallBuffers::field_vortex, OVERLAY_ExtraCallBuffers::field_wind, G, G_draw, G_TRANSFORM_OBJ, OVERLAY_ExtraCallBuffers::groundline, OVERLAY_InstanceFormats::instance_extra, OVERLAY_InstanceFormats::instance_pos, OVERLAY_ExtraCallBuffers::light_area, OVERLAY_ExtraCallBuffers::light_point, OVERLAY_ExtraCallBuffers::light_spot, OVERLAY_ExtraCallBuffers::light_spot_cone_back, OVERLAY_ExtraCallBuffers::light_spot_cone_front, OVERLAY_ExtraCallBuffers::light_sun, OVERLAY_ExtraCallBuffers::origin_xform, OVERLAY_shader_extra(), OVERLAY_shader_extra_grid(), OVERLAY_shader_extra_groundline(), OVERLAY_shader_extra_loose_point(), OVERLAY_shader_extra_point(), OVERLAY_shader_extra_wire(), OVERLAY_shader_instance_formats_get(), OVERLAY_StorageList::pd, OVERLAY_InstanceFormats::point_extra, OVERLAY_InstanceFormats::pos, OVERLAY_InstanceFormats::pos_color, OVERLAY_ExtraCallBuffers::probe_cube, OVERLAY_ExtraCallBuffers::probe_grid, OVERLAY_ExtraCallBuffers::probe_planar, OVERLAY_Data::psl, sh, OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_ExtraCallBuffers::speaker, state, OVERLAY_Data::stl, tex, OVERLAY_Data::txl, and OVERLAY_InstanceFormats::wire_extra.
Referenced by OVERLAY_cache_init().
void OVERLAY_extra_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 1534 of file overlay_extra.c.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, BASE_SELECTED, BKE_modifier_is_enabled(), BKE_modifiers_findby_type(), Object::boundtype, RenderData::cfra, color, DRWContextState::depsgraph, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), DRW_state_show_text(), Object::dt, Object::dtx, ELEM, eModifierMode_Realtime, eModifierType_Fluid, OVERLAY_ExtraCallBuffers::empty_axes, View3DOverlay::flag, PartDeflect::forcefield, NULL, OB_ARMATURE, OB_AXIS, OB_BOUNDBOX, OB_CAMERA, OB_DRAWBOUNDOX, OB_DRAWNAME, OB_EMPTY, OB_GPENCIL, OB_LAMP, OB_LATTICE, OB_LIGHTPROBE, OB_MODE_ALL_PAINT, OB_MODE_ALL_PAINT_GPENCIL, OB_MODE_OBJECT, OB_SPEAKER, OB_TEXSPACE, DRWContextState::object_mode, Object::obmat, OVERLAY_ExtraCallBuffers::origin_xform, OVERLAY_PrivateData::overlay, OVERLAY_bounds(), OVERLAY_collision(), OVERLAY_extra_call_buffer_get(), OVERLAY_forcefield(), OVERLAY_object_center(), OVERLAY_object_name(), OVERLAY_relationship_lines(), OVERLAY_texture_space(), OVERLAY_volume_extra(), OVERLAY_StorageList::pd, Object::pd, Scene::r, Object::rigidbody_object, SCE_XFORM_DATA_ORIGIN, scene, DRWContextState::scene, OVERLAY_Data::stl, Scene::toolsettings, ToolSettings::transform_flag, Object::type, OVERLAY_PrivateData::v3d_flag, V3D_HIDE_HELPLINES, V3D_OVERLAY_HIDE_OBJECT_ORIGINS, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
OVERLAY_ExtraCallBuffers* OVERLAY_extra_call_buffer_get | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 243 of file overlay_extra.c.
References Object::dtx, OVERLAY_PrivateData::extra_call_buffers, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by edit_text_cache_populate_boxes(), OVERLAY_camera_cache_populate(), OVERLAY_empty_cache_populate(), OVERLAY_extra_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_lattice_cache_populate(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_speaker_cache_populate(), and OVERLAY_wireframe_cache_populate().
void OVERLAY_extra_centers_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1626 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_centers_ps, OVERLAY_PassList::extra_grid_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1616 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1621 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_line | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | start[3], | ||
const float | end[3], | ||
const int | color_id | ||
) |
Definition at line 234 of file overlay_extra.c.
References DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_lines.
Referenced by camera_view3d_reconstruction().
void OVERLAY_extra_line_dashed | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | start[3], | ||
const float | end[3], | ||
const float | color[4] | ||
) |
Definition at line 225 of file overlay_extra.c.
References color, DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_dashed_lines.
Referenced by camera_stereoscopy_extra(), drw_shgroup_bone_relationship_lines_ex(), edit_text_cache_populate_boxes(), and OVERLAY_relationship_lines().
void OVERLAY_extra_loose_points | ( | OVERLAY_ExtraCallBuffers * | cb, |
struct GPUBatch * | geom, | ||
const float | mat[4][4], | ||
const float | color[4] | ||
) |
Definition at line 250 of file overlay_extra.c.
References color, DRW_shgroup_call_obmat, OVERLAY_ExtraCallBuffers::extra_loose_points, and pack_v4_in_mat4().
Referenced by OVERLAY_wireframe_cache_populate().
void OVERLAY_extra_point | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | point[3], | ||
const float | color[4] | ||
) |
Definition at line 220 of file overlay_extra.c.
References color, DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::extra_points, and point.
Referenced by OVERLAY_relationship_lines().
void OVERLAY_extra_wire | ( | OVERLAY_ExtraCallBuffers * | cb, |
struct GPUBatch * | geom, | ||
const float | mat[4][4], | ||
const float | color[4] | ||
) |
Definition at line 260 of file overlay_extra.c.
References col, color, DRW_shgroup_call_obmat, OVERLAY_ExtraCallBuffers::extra_wire, pack_v4_in_mat4(), and UNPACK3.
Referenced by OVERLAY_lattice_cache_populate(), and OVERLAY_wireframe_cache_populate().
|
static |
Definition at line 497 of file overlay_extra.c.
References color, Object::data, DRW_color_background_blend_get(), DRW_object_wire_theme_get(), NULL, OB_CURVES_LEGACY, Object::pd, pos, and Object::type.
Referenced by OVERLAY_extra_cache_populate().
void OVERLAY_light_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 598 of file overlay_extra.c.
References Freestyle::a, Light::area_shape, Light::area_size, Light::area_sizey, Light::att_dist, usdtokens::b(), Freestyle::c, Light::clipsta, color, copy_m4_m4(), cosf, Object::data, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), ELEM, OVERLAY_ExtraCallBuffers::groundline, LA_AREA, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_AREA_SQUARE, LA_LOCAL, LA_SHOW_CONE, LA_SPOT, LA_SUN, OVERLAY_ExtraCallBuffers::light_area, OVERLAY_ExtraCallBuffers::light_point, OVERLAY_ExtraCallBuffers::light_spot, OVERLAY_ExtraCallBuffers::light_spot_cone_back, OVERLAY_ExtraCallBuffers::light_spot_cone_front, OVERLAY_ExtraCallBuffers::light_sun, max_ff(), Light::mode, Object::obmat, OVERLAY_extra_call_buffer_get(), pos, rescale_m4(), Light::spotblend, Light::spotsize, sqr(), sqrtf, Light::type, UNPACK3, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_lightprobe_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 687 of file overlay_extra.c.
References LightProbe::attenuation_type, Object::base_flag, BASE_SELECTED, LightProbe::clipend, LightProbe::clipsta, copy_m4_m4(), Object::data, LightProbe::distinf, LightProbe::distpar, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_shgroup_call_procedural_points(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_mat4_copy(), DRW_state_is_select(), OVERLAY_ExtraCallBuffers::empty_cube, Object::empty_drawsize, OVERLAY_PrivateData::extra_grid_grp, LightProbe::falloff, LightProbe::flag, LightProbe::grid_resolution_x, LightProbe::grid_resolution_y, LightProbe::grid_resolution_z, OVERLAY_ExtraCallBuffers::groundline, LIGHTPROBE_FLAG_CUSTOM_PARALLAX, LIGHTPROBE_FLAG_SHOW_CLIP_DIST, LIGHTPROBE_FLAG_SHOW_DATA, LIGHTPROBE_FLAG_SHOW_INFLUENCE, LIGHTPROBE_FLAG_SHOW_PARALLAX, LIGHTPROBE_SHAPE_BOX, LIGHTPROBE_TYPE_CUBE, LIGHTPROBE_TYPE_GRID, LIGHTPROBE_TYPE_PLANAR, mul_v3_fl(), normalize_m4_m4(), normalize_v3_length(), NULL, OB_CUBE, OB_EMPTY_SPHERE, OB_SINGLE_ARROW, Object::obmat, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), LightProbe::parallax_type, OVERLAY_StorageList::pd, pos, OVERLAY_ExtraCallBuffers::probe_cube, OVERLAY_ExtraCallBuffers::probe_grid, OVERLAY_ExtraCallBuffers::probe_planar, OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_Data::stl, TH_ACTIVE, LightProbe::type, DRWContextState::view_layer, and zero_v3().
Referenced by OVERLAY_cache_populate().
|
static |
Definition at line 1497 of file overlay_extra.c.
References Object::base_flag, BASE_SELECTED, OVERLAY_ExtraCallBuffers::center_active, OVERLAY_ExtraCallBuffers::center_deselected, OVERLAY_ExtraCallBuffers::center_deselected_lib, OVERLAY_ExtraCallBuffers::center_selected, OVERLAY_ExtraCallBuffers::center_selected_lib, DRW_buffer_add_entry, Object::id, ID_IS_LINKED, ID_REAL_USERS, OBACT, Object::obmat, V3D_DRAW_CENTERS, and OVERLAY_PrivateData::v3d_flag.
Referenced by OVERLAY_extra_cache_populate().
Definition at line 1517 of file overlay_extra.c.
References color, DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, DRW_TEXT_CACHE_STRING_PTR, Object::id, ID::name, Object::obmat, and UI_GetThemeColor4ubv().
Referenced by OVERLAY_extra_cache_populate().
|
static |
Definition at line 1247 of file overlay_extra.c.
References BKE_constraint_custom_object_space_init(), BKE_constraint_targets_flush(), BKE_constraint_targets_get(), BKE_constraint_typeinfo_get(), BKE_constraints_make_evalob(), BLI_listbase_is_empty(), DRW_Global::block, Scene::camera, HookGpencilModifierData::cent, HookModifierData::cent, center, GlobalsUboStorage::color_grid_axis_z, GlobalsUboStorage::color_wire, CONSTRAINT_OBTYPE_OBJECT, CONSTRAINT_TAR_CUSTOM_SPACE, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_OBJECTSOLVER, Object::constraints, copy_m4_m4(), data, bConstraint::data, DEG_get_ctime(), depsgraph, DRW_object_visibility_in_active_context(), eGpencilModifierType_Hook, ELEM, eModifierType_Hook, ListBase::first, bConstraintTarget::flag, G_draw, bConstraintTypeInfo::get_target_matrix, Object::greasepencil_modifiers, bConstraintTarget::matrix, MEM_freeN, Object::modifiers, mul_v3_m4v3(), bConstraint::next, bConstraintTarget::next, NULL, RigidBodyCon::ob1, RigidBodyCon::ob2, OB_VISIBLE_SELF, HookGpencilModifierData::object, HookModifierData::object, Object::obmat, OVERLAY_extra_line_dashed(), OVERLAY_extra_point(), Object::parent, Object_Runtime::parent_display_origin, Object::rigidbody_constraint, Object::runtime, scene, bConstraintOb::space_obj_world_matrix, bConstraint::type, bConstraint::ui_expand_flag, and unit_m4().
Referenced by OVERLAY_extra_cache_populate().
void OVERLAY_speaker_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 791 of file overlay_extra.c.
References DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), Object::obmat, OVERLAY_extra_call_buffer_get(), OVERLAY_ExtraCallBuffers::speaker, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
|
static |
Definition at line 445 of file overlay_extra.c.
References BKE_curve_texspace_ensure(), BKE_mesh_texspace_get_reference(), BLI_assert, color, copy_v3_v3(), Object::data, DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_cube, GS, ID_CU_LEGACY, ID_CV, ID_MB, ID_ME, ID_PT, ID_VO, Curve::loc, MetaBall::loc, mul_m4_m4m4(), ID::name, NULL, Object::obmat, Curve::size, MetaBall::size, size_to_mat4(), and unit_m4().
Referenced by OVERLAY_extra_cache_populate().
|
static |
Definition at line 1361 of file overlay_extra.c.
References axis_dominant_v3_single(), FluidDomainSettings::axis_slice_method, AXIS_SLICE_SINGLE, FluidDomainSettings::cell_size, RenderData::cfra, FluidDomainSettings::coba_field, color, copy_v3_v3(), data, FluidModifierData::domain, FluidDomainSettings::draw_velocity, DRW_buffer_add_entry, DRW_fluid_ensure_flags(), DRW_fluid_ensure_range_field(), DRW_shgroup_call_procedural_lines(), DRW_shgroup_create(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_ivec3_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_smoke_ensure_velocity(), DRW_view_viewmat_get(), OVERLAY_ExtraCallBuffers::empty_cube, FluidDomainSettings::fluid, FLUID_DISPLAY_INTERP_CLOSEST, FLUID_DOMAIN_FIELD_FLAGS, FLUID_DOMAIN_VECTOR_FIELD_FORCE, FLUID_GRIDLINE_COLOR_TYPE_FLAGS, FLUID_GRIDLINE_COLOR_TYPE_RANGE, FluidDomainSettings::gridlines_cell_filter, FluidDomainSettings::gridlines_color_field, FluidDomainSettings::gridlines_lower_bound, FluidDomainSettings::gridlines_range_color, FluidDomainSettings::gridlines_upper_bound, FluidDomainSettings::interp_method, madd_v3fl_v3fl_v3fl_v3i(), min, mul_m4_m4m4(), NULL, Object::obmat, OVERLAY_shader_volume_gridlines(), OVERLAY_shader_volume_velocity(), FluidDomainSettings::p0, FluidDomainSettings::point_cache, Scene::r, FluidDomainSettings::res, FluidDomainSettings::res_min, scene, sh, FluidDomainSettings::show_gridlines, FluidDomainSettings::slice_axis, SLICE_AXIS_AUTO, FluidDomainSettings::slice_depth, PointCache::startframe, FluidDomainSettings::tex_flags, FluidDomainSettings::tex_range_field, FluidDomainSettings::tex_velocity_x, FluidDomainSettings::tex_velocity_y, FluidDomainSettings::tex_velocity_z, translate_m4(), FluidDomainSettings::use_coba, VECTOR_DRAW_MAC, FluidDomainSettings::vector_draw_mac_components, VECTOR_DRAW_MAC_X, VECTOR_DRAW_MAC_Y, VECTOR_DRAW_MAC_Z, VECTOR_DRAW_NEEDLE, FluidDomainSettings::vector_draw_type, FluidDomainSettings::vector_field, FluidDomainSettings::vector_scale, and FluidDomainSettings::vector_scale_with_magnitude.
Referenced by OVERLAY_extra_cache_populate().