|
Blender V4.3
|
#include "BKE_global.hh"#include "BLI_math_matrix.hh"#include "DRW_gpu_wrapper.hh"#include "DRW_render.hh"#include "UI_resources.hh"#include "draw_handle.hh"#include "overlay_shader_shared.h"#include "DNA_mask_types.h"#include "DNA_space_types.h"Go to the source code of this file.
Classes | |
| struct | OVERLAY_FramebufferList |
| struct | OVERLAY_TextureList |
| struct | OVERLAY_PassList |
| struct | OVERLAY_ShadingData |
| struct | OVERLAY_ExtraCallBuffers |
| struct | OVERLAY_ArmatureCallBuffersInner |
| struct | OVERLAY_ArmatureCallBuffers |
| struct | OVERLAY_PrivateData |
| struct | OVERLAY_StorageList |
| struct | OVERLAY_Data |
| struct | OVERLAY_DupliData |
| struct | BoneInstanceData |
| struct | OVERLAY_InstanceFormats |
Macros | |
| #define | USE_GEOM_SHADER_WORKAROUND 0 |
| #define | NOT_IN_FRONT 0 |
| #define | IN_FRONT 1 |
Enumerations | |
| enum | OVERLAY_UVLineStyle { OVERLAY_UV_LINE_STYLE_OUTLINE = 0 , OVERLAY_UV_LINE_STYLE_DASH = 1 , OVERLAY_UV_LINE_STYLE_BLACK = 2 , OVERLAY_UV_LINE_STYLE_WHITE = 3 , OVERLAY_UV_LINE_STYLE_SHADOW = 4 } |
| #define IN_FRONT 1 |
Definition at line 54 of file overlay_private.hh.
Referenced by OVERLAY_edit_curves_draw(), OVERLAY_edit_mesh_draw(), OVERLAY_facing_cache_init(), OVERLAY_facing_infront_draw(), OVERLAY_fade_cache_init(), OVERLAY_fade_infront_draw(), OVERLAY_mode_transfer_cache_populate(), and OVERLAY_mode_transfer_infront_draw().
| #define NOT_IN_FRONT 0 |
Definition at line 53 of file overlay_private.hh.
Referenced by OVERLAY_edit_curves_draw(), OVERLAY_edit_mesh_draw(), OVERLAY_facing_cache_init(), OVERLAY_facing_draw(), OVERLAY_fade_cache_init(), OVERLAY_fade_draw(), OVERLAY_mode_transfer_cache_populate(), and OVERLAY_mode_transfer_draw().
| #define USE_GEOM_SHADER_WORKAROUND 0 |
Definition at line 27 of file overlay_private.hh.
| enum OVERLAY_UVLineStyle |
| Enumerator | |
|---|---|
| OVERLAY_UV_LINE_STYLE_OUTLINE | |
| OVERLAY_UV_LINE_STYLE_DASH | |
| OVERLAY_UV_LINE_STYLE_BLACK | |
| OVERLAY_UV_LINE_STYLE_WHITE | |
| OVERLAY_UV_LINE_STYLE_SHADOW | |
Definition at line 56 of file overlay_private.hh.
| void OVERLAY_antialiasing_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 144 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, OVERLAY_PrivateData::do_depth_copy, OVERLAY_PrivateData::do_depth_infront_copy, DRW_pass_is_empty(), DRW_texture_ensure_fullscreen_2d(), DRW_viewport_texture_list_get(), OVERLAY_PrivateData::enabled, OVERLAY_Data::fbl, GPU_DEPTH24_STENCIL8, GPU_framebuffer_ensure_config, OVERLAY_FramebufferList::overlay_in_front_fb, OVERLAY_FramebufferList::overlay_line_in_front_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, OVERLAY_Data::txl, OVERLAY_PassList::wireframe_ps, OVERLAY_PassList::wireframe_xray_ps, OVERLAY_PrivateData::xray_enabled, and OVERLAY_PrivateData::xray_opacity.
Referenced by OVERLAY_cache_finish().
| void OVERLAY_antialiasing_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 105 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, OVERLAY_PassList::antialiasing_ps, DRW_Global::block_ubo, DefaultTextureList::depth, DRW_PASS_CREATE, DRW_shgroup_call_procedural_triangles(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_texture_ref(), DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_BLEND_MUL, DRW_STATE_WRITE_COLOR, DRW_viewport_texture_list_get(), OVERLAY_PrivateData::enabled, G_draw, OVERLAY_TextureList::overlay_color_tx, OVERLAY_TextureList::overlay_line_tx, OVERLAY_shader_antialiasing(), OVERLAY_shader_xray_fade(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, OVERLAY_Data::txl, USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE, OVERLAY_PrivateData::xray_enabled, OVERLAY_PassList::xray_fade_ps, and OVERLAY_PrivateData::xray_opacity.
Referenced by OVERLAY_cache_init().
| void OVERLAY_antialiasing_end | ( | OVERLAY_Data * | vedata | ) |
Definition at line 247 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, OVERLAY_PassList::antialiasing_ps, DRW_draw_pass(), DRW_viewport_framebuffer_list_get(), OVERLAY_PrivateData::enabled, GPU_framebuffer_bind(), DefaultFramebufferList::overlay_only_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_antialiasing_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 49 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, DRW_Global::block, DefaultTextureList::color_overlay, DRW_state_is_fbo(), DRW_TEX_FILTER, DRW_texture_create_2d(), DRW_texture_ensure_fullscreen_2d(), DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, OVERLAY_PrivateData::enabled, OVERLAY_Data::fbl, G_draw, GPU_DEPTH_COMPONENT24, GPU_framebuffer_ensure_config, GPU_RGBA8, GPU_SRGB8_A8, OVERLAY_FramebufferList::overlay_color_only_fb, OVERLAY_TextureList::overlay_color_tx, OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_FramebufferList::overlay_line_fb, OVERLAY_TextureList::overlay_line_tx, OVERLAY_StorageList::pd, GlobalsUboStorage::size_pixel, OVERLAY_Data::stl, OVERLAY_Data::txl, and USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE.
Referenced by OVERLAY_engine_init().
| void OVERLAY_antialiasing_start | ( | OVERLAY_Data * | vedata | ) |
Definition at line 186 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, OVERLAY_PrivateData::clear_in_front, DRW_state_is_fbo(), OVERLAY_PrivateData::enabled, OVERLAY_Data::fbl, GPU_framebuffer_bind(), GPU_framebuffer_clear_color(), GPU_framebuffer_clear_depth(), OVERLAY_FramebufferList::overlay_in_front_fb, OVERLAY_FramebufferList::overlay_line_fb, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_armature_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 3257 of file overlay_armature.cc.
References OVERLAY_PrivateData::armature_call_buffers, BLI_ghash_free(), OVERLAY_ArmatureCallBuffersInner::custom_shapes_ghash, OVERLAY_StorageList::pd, OVERLAY_ArmatureCallBuffers::solid, OVERLAY_Data::stl, and OVERLAY_ArmatureCallBuffers::transp.
Referenced by OVERLAY_cache_finish().
| void OVERLAY_armature_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 273 of file overlay_armature.cc.
References OVERLAY_PrivateData::armature, OVERLAY_PrivateData::armature_bone_select_act_grp, OVERLAY_PrivateData::armature_bone_select_grp, OVERLAY_PassList::armature_bone_select_ps, OVERLAY_PrivateData::armature_call_buffers, OVERLAY_PassList::armature_ps, OVERLAY_PassList::armature_transp_ps, BLI_ghash_ptr_new(), DRW_Global::block_ubo, View3DOverlay::bone_wire_alpha, OVERLAY_ArmatureCallBuffersInner::box_fill, OVERLAY_ArmatureCallBuffersInner::box_outline, BUF_INSTANCE, BUF_LINE, OVERLAY_PrivateData::clipping_state, OVERLAY_ArmatureCallBuffersInner::custom_fill, OVERLAY_ArmatureCallBuffersInner::custom_outline, OVERLAY_ArmatureCallBuffersInner::custom_shapes_ghash, OVERLAY_ArmatureCallBuffersInner::custom_wire, DefaultTextureList::depth, OVERLAY_PrivateData::do_pose_fade_geom, OVERLAY_PrivateData::do_pose_xray, OVERLAY_ArmatureCallBuffersInner::dof_lines, OVERLAY_ArmatureCallBuffersInner::dof_sphere, DRW_cache_bone_box_get(), DRW_cache_bone_box_wire_get(), DRW_cache_bone_dof_lines_get(), DRW_cache_bone_dof_sphere_get(), DRW_cache_bone_envelope_outline_get(), DRW_cache_bone_envelope_solid_get(), DRW_cache_bone_octahedral_get(), DRW_cache_bone_octahedral_wire_get(), DRW_cache_bone_point_get(), DRW_cache_bone_point_wire_outline_get(), DRW_cache_bone_stick_get(), DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_state_disable(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_texture_ref(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ADD, DRW_STATE_BLEND_ALPHA, DRW_STATE_CULL_BACK, DRW_STATE_CULL_FRONT, DRW_STATE_DEPTH_EQUAL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_ArmatureCallBuffersInner::envelope_distance, OVERLAY_ArmatureCallBuffersInner::envelope_fill, OVERLAY_ArmatureCallBuffersInner::envelope_outline, View3D::flag, View3DOverlay::flag, G_draw, OVERLAY_InstanceFormats::instance_bone, OVERLAY_InstanceFormats::instance_bone_envelope, OVERLAY_InstanceFormats::instance_bone_envelope_distance, OVERLAY_InstanceFormats::instance_bone_envelope_outline, OVERLAY_InstanceFormats::instance_bone_stick, OVERLAY_InstanceFormats::instance_extra, OB_MODE_WEIGHT_PAINT, OB_WIRE, DRWContextState::object_mode, DRWContextState::object_pose, OVERLAY_ArmatureCallBuffersInner::octa_fill, OVERLAY_ArmatureCallBuffersInner::octa_outline, OVERLAY_PrivateData::overlay, OVERLAY_shader_armature_degrees_of_freedom_solid(), OVERLAY_shader_armature_degrees_of_freedom_wire(), OVERLAY_shader_armature_envelope(), OVERLAY_shader_armature_shape(), OVERLAY_shader_armature_shape_wire(), OVERLAY_shader_armature_sphere(), OVERLAY_shader_armature_stick(), OVERLAY_shader_armature_wire(), OVERLAY_shader_instance_formats_get(), OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_ArmatureCallBuffersInner::point_fill, OVERLAY_ArmatureCallBuffersInner::point_outline, OVERLAY_InstanceFormats::pos_color, powf, OVERLAY_Data::psl, View3D::shading, OVERLAY_PrivateData::show_relations, OVERLAY_ArmatureCallBuffers::solid, state, OVERLAY_ArmatureCallBuffersInner::stick, OVERLAY_Data::stl, OVERLAY_ArmatureCallBuffers::transp, OVERLAY_PrivateData::transparent, View3DShading::type, USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE, DRWContextState::v3d, V3D_HIDE_HELPLINES, V3D_OVERLAY_BONE_SELECT, OVERLAY_ArmatureCallBuffersInner::wire, View3DOverlay::xray_alpha_bone, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_cache_init().
| void OVERLAY_armature_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 3208 of file overlay_armature.cc.
References blender::draw::overlay::ARM_DRAW_MODE_OBJECT, armature_context_setup(), blender::draw::overlay::Armatures::draw_armature_pose(), DRW_context_state_get(), DRW_object_wire_theme_get(), Object::dt, OB_BOUNDBOX, OVERLAY_StorageList::pd, OVERLAY_Data::stl, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_armature_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 3270 of file overlay_armature.cc.
References OVERLAY_PassList::armature_ps, OVERLAY_PassList::armature_transp_ps, DRW_draw_pass(), and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_armature_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 3278 of file overlay_armature.cc.
References OVERLAY_PassList::armature_bone_select_ps, OVERLAY_PassList::armature_ps, OVERLAY_PassList::armature_transp_ps, DRW_draw_pass(), DRW_state_is_select(), and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| bool OVERLAY_armature_is_pose_mode | ( | Object * | ob, |
| const DRWContextState * | draw_ctx ) |
Return true if armature should be handled by the pose mode engine.
Definition at line 252 of file overlay_armature.cc.
References Object::mode, OB_MODE_ALL_WEIGHT_PAINT, OB_MODE_POSE, DRWContextState::obact, DRWContextState::object_mode, and DRWContextState::object_pose.
Referenced by OVERLAY_cache_populate(), OVERLAY_motion_path_cache_populate(), and POSE_is_driven_by_active_armature().
| void OVERLAY_background_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_background.cc.
References View3DShading::background_color, OVERLAY_PassList::background_ps, View3DShading::background_type, BG_CHECKER, BG_GRADIENT, BG_MASK, BG_RADIAL, BG_SOLID, BG_SOLID_CHECKER, DRW_Global::block, DRW_Global::block_ubo, RegionView3D::clipbb, OVERLAY_PassList::clipping_frustum_ps, OVERLAY_PrivateData::clipping_state, DefaultTextureList::color, GlobalsUboStorage::color_clipping_border, copy_v3_v3(), DefaultTextureList::depth, DRW_cache_cube_get(), DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call, DRW_shgroup_call_procedural_triangles(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_texture_ref(), DRW_shgroup_uniform_vec3(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_BLEND_BACKGROUND, DRW_STATE_BLEND_MUL, DRW_STATE_CULL_BACK, DRW_state_draw_background(), DRW_state_is_viewport_image_render(), DRW_STATE_WRITE_COLOR, DRW_viewport_texture_list_get(), G_draw, OB_SOLID, OVERLAY_shader_background(), OVERLAY_shader_clipbound(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::rv3d, DRWContextState::scene, View3D::shading, SPACE_IMAGE, SPACE_NODE, OVERLAY_PrivateData::space_type, state, OVERLAY_Data::stl, TH_BACKGROUND_GRADIENT_LINEAR, TH_BACKGROUND_GRADIENT_RADIAL, TH_BACKGROUND_SINGLE_COLOR, TH_BACKGROUND_TYPE, View3DShading::type, UI_GetThemeValue(), DRWContextState::v3d, V3D_SHADING_BACKGROUND_VIEWPORT, V3D_SHADING_BACKGROUND_WORLD, and BoundBox::vec.
Referenced by OVERLAY_cache_init().
| void OVERLAY_background_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 105 of file overlay_background.cc.
References OVERLAY_PassList::background_ps, OVERLAY_PassList::clipping_frustum_ps, DRW_draw_pass(), DRW_state_is_fbo(), and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_bone_instance_data_set_color | ( | BoneInstanceData * | data, |
| const float | bone_color[4] ) |
Definition at line 608 of file overlay_armature.cc.
References encode_2f_to_float().
Referenced by drw_shgroup_bone_box(), drw_shgroup_bone_envelope(), drw_shgroup_bone_octahedral(), drw_shgroup_bone_sphere(), and metaball_instance_data_set().
| void OVERLAY_bone_instance_data_set_color_hint | ( | BoneInstanceData * | data, |
| const float | hint_color[4] ) |
Definition at line 601 of file overlay_armature.cc.
References encode_2f_to_float().
Referenced by drw_shgroup_bone_box(), drw_shgroup_bone_envelope(), drw_shgroup_bone_octahedral(), and drw_shgroup_bone_sphere().
| void OVERLAY_camera_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 1141 of file overlay_extra.cc.
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(), OVERLAY_CameraInstanceData::center_x, OVERLAY_CameraInstanceData::center_y, Camera::clip_end, OVERLAY_CameraInstanceData::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, mul_v2_fl(), mul_v3_fl(), mul_v3_v3(), View3D::multiview_eye, normalize_m4_m4(), OVERLAY_extra_call_buffer_get(), OVERLAY_image_camera_cache_populate(), RegionView3D::persp, R_MULTIVIEW, DRWContextState::rv3d, RV3D_CAMOB, SCE_VIEWS_FORMAT_STEREO_3D, DRWContextState::scene, View3D::stereo3d_flag, STEREO_LEFT_NAME, STEREO_RIGHT_ID, STEREO_RIGHT_NAME, sub_v2_v2v2(), DRWContextState::v3d, V3D_SHOW_RECONSTRUCTION, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_armature_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 3192 of file overlay_armature.cc.
References blender::draw::overlay::ARM_DRAW_MODE_EDIT, armature_context_setup(), blender::draw::overlay::Armatures::draw_armature_edit(), OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_curve_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 15 of file overlay_edit_curve.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, CURVE_HANDLE_NONE, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_curve, OVERLAY_PrivateData::edit_curve_handle_grp, OVERLAY_PassList::edit_curve_handle_ps, OVERLAY_PrivateData::edit_curve_normal_grp, OVERLAY_ShadingData::edit_curve_normal_length, OVERLAY_PrivateData::edit_curve_points_grp, OVERLAY_PrivateData::edit_curve_wire_grp, OVERLAY_PassList::edit_curve_wire_ps, G_draw, OVERLAY_PrivateData::handle_display, View3DOverlay::handle_display, View3DOverlay::normals_length, View3D::overlay, OVERLAY_shader_edit_curve_handle(), OVERLAY_shader_edit_curve_point(), OVERLAY_shader_edit_curve_wire(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::shdata, OVERLAY_PrivateData::show_handles, state, OVERLAY_Data::stl, and DRWContextState::v3d.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_curve_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 63 of file overlay_edit_curve.cc.
References CU_3D, Object::data, DRW_cache_curve_edge_normal_get(), DRW_cache_curve_edge_overlay_get(), DRW_cache_curve_edge_wire_get(), DRW_cache_curve_vert_overlay_get(), DRW_shgroup_call_instances(), DRW_shgroup_call_no_cull, Object::dtx, OVERLAY_PrivateData::edit_curve_handle_grp, OVERLAY_PrivateData::edit_curve_normal_grp, OVERLAY_PrivateData::edit_curve_points_grp, OVERLAY_PrivateData::edit_curve_wire_grp, View3DOverlay::edit_flag, Curve::flag, OB_DRAW_IN_FRONT, OVERLAY_PrivateData::overlay, OVERLAY_StorageList::pd, OVERLAY_Data::stl, and V3D_OVERLAY_EDIT_CU_NORMALS.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_curve_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 109 of file overlay_edit_curve.cc.
References DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_PassList::edit_curve_handle_ps, OVERLAY_PassList::edit_curve_wire_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_FramebufferList::overlay_default_fb, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_curves_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 39 of file overlay_edit_curves.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, OVERLAY_PrivateData::do_points, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_curves, OVERLAY_PrivateData::edit_curves_handles_grp, OVERLAY_PassList::edit_curves_handles_ps, OVERLAY_PrivateData::edit_curves_lines_grp, OVERLAY_PassList::edit_curves_lines_ps, OVERLAY_PrivateData::edit_curves_points_grp, OVERLAY_PassList::edit_curves_points_ps, G_draw, OVERLAY_shader_edit_curves_handle(), OVERLAY_shader_edit_particle_point(), OVERLAY_shader_edit_particle_strand(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_curves_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 98 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_zbufclip, OVERLAY_PrivateData::edit_curves, overlay_edit_curves_add_ob_to_pass(), OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_curves_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 105 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_points, OVERLAY_PrivateData::do_zbufclip, DRW_draw_pass(), DRW_state_is_fbo(), DRW_view_set_active(), OVERLAY_PrivateData::edit_curves, OVERLAY_PassList::edit_curves_handles_ps, OVERLAY_PassList::edit_curves_lines_ps, OVERLAY_PassList::edit_curves_points_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), IN_FRONT, NOT_IN_FRONT, OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_edit_curves.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_curves_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 22 of file overlay_edit_curves.cc.
References Object::data, DEG_get_original_object(), OVERLAY_PrivateData::do_points, OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_view_create_with_zoffset(), DRW_view_default_get(), OVERLAY_PrivateData::edit_curves, DRWContextState::obact, OVERLAY_StorageList::pd, DRWContextState::rv3d, Curves::selection_domain, OVERLAY_Data::stl, DRWContextState::v3d, OVERLAY_PrivateData::view_edit_curves, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_engine_init().
| void OVERLAY_edit_gpencil_legacy_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 26 of file overlay_gpencil_legacy.cc.
References DRW_Global::block, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, bGPDcontrolpoint::color, bGPdata_Runtime::cp_points, Object::data, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call_procedural_points(), DRW_shgroup_create(), DRW_shgroup_create_sub(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_curve, OVERLAY_PrivateData::edit_gpencil_curve_handle_grp, OVERLAY_PrivateData::edit_gpencil_curve_points_grp, OVERLAY_PassList::edit_gpencil_curve_ps, OVERLAY_PassList::edit_gpencil_gizmos_ps, OVERLAY_PrivateData::edit_gpencil_points_grp, OVERLAY_PassList::edit_gpencil_ps, OVERLAY_PrivateData::edit_gpencil_wires_grp, bGPdata::flag, G_draw, View3D::gizmo_flag, GP_DATA_STROKE_WEIGHTMODE, View3D::gp_flag, GP_GUIDE_REF_CUSTOM, GP_GUIDE_REF_OBJECT, ToolSettings::gp_sculpt, GP_SCULPT_MASK_SELECTMODE_POINT, GP_SCULPT_MASK_SELECTMODE_SEGMENT, GP_SELECTMODE_STROKE, GP_VERTEX_MASK_SELECTMODE_POINT, GP_VERTEX_MASK_SELECTMODE_SEGMENT, GPENCIL_ANY_SCULPT_MASK, GPENCIL_ANY_VERTEX_MASK, GPENCIL_CURVE_EDIT_SESSIONS_ON, GPENCIL_EDIT_MODE, GPENCIL_MULTIEDIT_SESSIONS_ON, GPENCIL_PAINT_MODE, GPENCIL_SCULPT_MODE, ToolSettings::gpencil_selectmode_edit, ToolSettings::gpencil_selectmode_sculpt, ToolSettings::gpencil_selectmode_vertex, GPENCIL_VERTEX_MODE, GPENCIL_WEIGHT_MODE, GP_Sculpt_Settings::guide, OVERLAY_PrivateData::handle_display, Object::loc, GP_Sculpt_Guide::location, OB_GPENCIL_LEGACY, OB_MODE_PAINT_GREASE_PENCIL, DRWContextState::obact, DRWContextState::object_mode, OVERLAY_shader_edit_curve_handle(), OVERLAY_shader_edit_curve_point(), OVERLAY_shader_edit_gpencil_guide_point(), OVERLAY_shader_edit_gpencil_point(), OVERLAY_shader_edit_gpencil_wire(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, GP_Sculpt_Guide::reference_object, GP_Sculpt_Guide::reference_point, bGPdata::runtime, DRWContextState::scene, OVERLAY_PrivateData::show_handles, bGPDcontrolpoint::size, GlobalsUboStorage::size_pixel, state, OVERLAY_Data::stl, TH_GIZMO_PRIMARY, TH_GIZMO_SECONDARY, TH_REDALERT, bGPdata_Runtime::tot_cp_points, Object::type, UI_GetThemeColor4fv(), GP_Sculpt_Guide::use_guide, DRWContextState::v3d, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_TOOL, V3D_GP_SHOW_EDIT_LINES, V3D_GP_SHOW_MULTIEDIT_LINES, View3D::vertex_opacity, DRW_Global::weight_ramp, and bGPDcontrolpoint::x.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_gpencil_legacy_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 334 of file overlay_gpencil_legacy.cc.
References DRW_draw_pass(), OVERLAY_PassList::edit_gpencil_curve_ps, OVERLAY_PassList::edit_gpencil_gizmos_ps, OVERLAY_PassList::edit_gpencil_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_grease_pencil_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 142 of file overlay_grease_pencil.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PassList::edit_grease_pencil_ps, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, G_draw, View3D::gp_flag, is_selection_visible(), OB_MODE_WEIGHT_GREASE_PENCIL, DRWContextState::object_mode, OVERLAY_shader_edit_particle_point(), OVERLAY_shader_edit_particle_strand(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, DRWContextState::v3d, V3D_GP_SHOW_STROKE_DIRECTION, and DRW_Global::weight_ramp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 281 of file overlay_grease_pencil.cc.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, DRW_context_state_get(), DRW_shgroup_call_no_cull, DRW_state_show_text(), OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, View3D::gp_flag, OVERLAY_grease_pencil_material_names(), OVERLAY_StorageList::pd, DRWContextState::scene, OVERLAY_Data::stl, DRWContextState::v3d, and V3D_GP_SHOW_MATERIAL_NAME.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_grease_pencil_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 395 of file overlay_grease_pencil.cc.
References DRW_draw_pass(), OVERLAY_PassList::edit_grease_pencil_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_lattice_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 13 of file overlay_lattice.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_texture(), DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_lattice_points_grp, OVERLAY_PassList::edit_lattice_ps, OVERLAY_PrivateData::edit_lattice_wires_grp, G_draw, OVERLAY_shader_edit_lattice_point(), OVERLAY_shader_edit_lattice_wire(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, and DRW_Global::weight_ramp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_lattice_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 35 of file overlay_lattice.cc.
References DRW_cache_lattice_vert_overlay_get(), DRW_cache_lattice_wire_get(), DRW_shgroup_call, OVERLAY_PrivateData::edit_lattice_points_grp, OVERLAY_PrivateData::edit_lattice_wires_grp, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_lattice_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 59 of file overlay_lattice.cc.
References DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_PassList::edit_lattice_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_FramebufferList::overlay_default_fb, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_mesh_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 44 of file overlay_edit_mesh.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, OVERLAY_ShadingData::data_mask, DefaultTextureList::depth, OVERLAY_PrivateData::do_faces, OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_ivec4(), DRW_shgroup_uniform_ivec4_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_texture_ref(), DRW_STATE_BLEND_ALPHA, DRW_STATE_CULL_BACK, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_FIRST_VERTEX_CONVENTION, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, View3DOverlay::edit_flag, OVERLAY_PrivateData::edit_mesh, OVERLAY_PrivateData::edit_mesh_analysis_grp, OVERLAY_PassList::edit_mesh_analysis_ps, OVERLAY_PrivateData::edit_mesh_depth_grp, OVERLAY_PassList::edit_mesh_depth_ps, OVERLAY_PrivateData::edit_mesh_edges_grp, OVERLAY_PassList::edit_mesh_edges_ps, OVERLAY_PrivateData::edit_mesh_facedots_grp, OVERLAY_PrivateData::edit_mesh_faces_cage_grp, OVERLAY_PassList::edit_mesh_faces_cage_ps, OVERLAY_PrivateData::edit_mesh_faces_grp, OVERLAY_PassList::edit_mesh_faces_ps, OVERLAY_PrivateData::edit_mesh_normals_grp, OVERLAY_PassList::edit_mesh_normals_ps, OVERLAY_PrivateData::edit_mesh_skin_roots_grp, OVERLAY_PrivateData::edit_mesh_verts_grp, OVERLAY_PassList::edit_mesh_verts_ps, flag, OVERLAY_PrivateData::flag, G_draw, View3DOverlay::normals_constant_screen_size, View3DOverlay::normals_length, OB_WIRE, View3D::overlay, OVERLAY_shader_edit_mesh_analysis(), OVERLAY_shader_edit_mesh_depth(), OVERLAY_shader_edit_mesh_edge(), OVERLAY_shader_edit_mesh_face(), OVERLAY_shader_edit_mesh_facedot(), OVERLAY_shader_edit_mesh_normal(), OVERLAY_shader_edit_mesh_skin_root(), OVERLAY_shader_edit_mesh_vert(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, RETOPOLOGY_ENABLED, RETOPOLOGY_OFFSET, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, DRWContextState::scene, OVERLAY_PrivateData::select_edge, OVERLAY_PrivateData::select_face, OVERLAY_PrivateData::select_vert, ToolSettings::selectmode, SET_FLAG_FROM_TEST, View3D::shading, OVERLAY_PrivateData::shdata, state, OVERLAY_Data::stl, Scene::toolsettings, OVERLAY_Data::txl, USER_GPU_FLAG_NO_EDIT_MODE_SMOOTH_WIRE, DRWContextState::v3d, V3D_OVERLAY_EDIT_BWEIGHTS, V3D_OVERLAY_EDIT_CONSTANT_SCREEN_SIZE_NORMALS, V3D_OVERLAY_EDIT_CREASES, V3D_OVERLAY_EDIT_FACE_DOT, V3D_OVERLAY_EDIT_FACES, V3D_OVERLAY_EDIT_FREESTYLE_EDGE, V3D_OVERLAY_EDIT_FREESTYLE_FACE, V3D_OVERLAY_EDIT_SEAMS, V3D_OVERLAY_EDIT_SHARP, and DRW_Global::weight_ramp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_mesh_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 276 of file overlay_edit_mesh.cc.
References Object::data, OVERLAY_PrivateData::do_zbufclip, DRW_cache_mesh_surface_get(), DRW_cache_mesh_surface_mesh_analysis_get(), DRW_cache_normal_arrow_get(), DRW_context_state_get(), DRW_shgroup_call_instances_with_attrs(), DRW_shgroup_call_no_cull, DRW_state_show_text(), DRW_text_edit_mesh_measure_stats(), Object::dt, Object::dtx, OVERLAY_PrivateData::edit_mesh, OVERLAY_PrivateData::edit_mesh_analysis_grp, OVERLAY_PrivateData::edit_mesh_depth_grp, OVERLAY_PrivateData::edit_mesh_normals_grp, OVERLAY_PrivateData::flag, OB_DRAW_IN_FRONT, OB_WIRE, overlay_edit_mesh_add_ob_to_pass(), OVERLAY_EDIT_TEXT, OVERLAY_StorageList::pd, DRWContextState::region, DRWContextState::scene, OVERLAY_Data::stl, Scene::unit, DRWContextState::v3d, V3D_OVERLAY_EDIT_FACE_NORMALS, V3D_OVERLAY_EDIT_LOOP_NORMALS, V3D_OVERLAY_EDIT_RETOPOLOGY, V3D_OVERLAY_EDIT_STATVIS, V3D_OVERLAY_EDIT_VERT_NORMALS, and OVERLAY_PrivateData::xray_enabled.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_mesh_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 354 of file overlay_edit_mesh.cc.
References OVERLAY_PrivateData::do_zbufclip, DRW_draw_pass(), DRW_pass_is_empty(), DRW_state_is_fbo(), DRW_view_set_active(), OVERLAY_PrivateData::edit_mesh, OVERLAY_PassList::edit_mesh_analysis_ps, OVERLAY_PassList::edit_mesh_depth_ps, OVERLAY_PassList::edit_mesh_edges_ps, OVERLAY_PassList::edit_mesh_faces_cage_ps, OVERLAY_PassList::edit_mesh_faces_ps, OVERLAY_PassList::edit_mesh_normals_ps, OVERLAY_PassList::edit_mesh_verts_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), GPU_framebuffer_clear_depth(), IN_FRONT, NOT_IN_FRONT, OVERLAY_FramebufferList::overlay_default_fb, overlay_edit_mesh_draw_components(), OVERLAY_FramebufferList::overlay_in_front_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, OVERLAY_PrivateData::view_edit_edges, OVERLAY_PrivateData::view_edit_faces, OVERLAY_PrivateData::view_edit_faces_cage, and OVERLAY_PrivateData::view_edit_verts.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_mesh_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 29 of file overlay_edit_mesh.cc.
References OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_view_create_with_zoffset(), DRW_view_default_get(), OVERLAY_PrivateData::edit_mesh, OVERLAY_StorageList::pd, DRWContextState::rv3d, OVERLAY_Data::stl, DRWContextState::v3d, OVERLAY_PrivateData::view_edit_edges, OVERLAY_PrivateData::view_edit_faces, OVERLAY_PrivateData::view_edit_faces_cage, OVERLAY_PrivateData::view_edit_verts, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_engine_init().
| void OVERLAY_edit_metaball_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 58 of file overlay_metaball.cc.
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, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_particle_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 25 of file overlay_particle.cc.
References DRW_Global::block_ubo, ParticleEditSettings::brushtype, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_particle, OVERLAY_PrivateData::edit_particle_point_grp, OVERLAY_PassList::edit_particle_ps, OVERLAY_PrivateData::edit_particle_strand_grp, G_draw, OVERLAY_shader_edit_particle_point(), OVERLAY_shader_edit_particle_strand(), OVERLAY_StorageList::pd, PE_BRUSH_WEIGHT, PE_settings(), OVERLAY_Data::psl, DRWContextState::scene, OVERLAY_PrivateData::select_mode, ParticleEditSettings::selectmode, state, OVERLAY_Data::stl, OVERLAY_PrivateData::use_weight, and DRW_Global::weight_ramp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_particle_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 55 of file overlay_particle.cc.
References DEG_get_original_id(), DEG_get_original_object(), DRWContextState::depsgraph, DRW_cache_particles_get_edit_inner_points(), DRW_cache_particles_get_edit_strands(), DRW_cache_particles_get_edit_tip_points(), DRW_context_state_get(), DRW_shgroup_call, OVERLAY_PrivateData::edit_particle, OVERLAY_PrivateData::edit_particle_point_grp, OVERLAY_PrivateData::edit_particle_strand_grp, ELEM, ListBase::first, Scene::id, LISTBASE_FOREACH, ParticleSystem::next, Object::particlesystem, OVERLAY_StorageList::pd, PE_create_current(), PE_get_current_from_psys(), printf, SCE_SELECT_END, SCE_SELECT_POINT, DRWContextState::scene, OVERLAY_PrivateData::select_mode, OVERLAY_Data::stl, and OVERLAY_PrivateData::use_weight.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_particle_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 110 of file overlay_particle.cc.
References DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_PassList::edit_particle_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_FramebufferList::overlay_default_fb, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_surf_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 93 of file overlay_edit_curve.cc.
References DRW_cache_curve_edge_overlay_get(), DRW_cache_curve_vert_overlay_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_curve_handle_grp, OVERLAY_PrivateData::edit_curve_points_grp, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_text_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 22 of file overlay_edit_text.cc.
References DRW_Global::block, OVERLAY_PrivateData::clipping_state, GlobalsUboStorage::color_wire, OVERLAY_PrivateData::cursor_color, CURVE_HANDLE_NONE, DRW_context_state_get(), DRW_PASS_CREATE, DRW_PASS_INSTANCE_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_vec4(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_GREATER_EQUAL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_view_create_with_zoffset(), DRW_view_default_get(), OVERLAY_PrivateData::edit_curve, OVERLAY_ShadingData::edit_curve_normal_length, OVERLAY_PrivateData::edit_text, OVERLAY_PrivateData::edit_text_cursor_grp, OVERLAY_PassList::edit_text_cursor_ps, OVERLAY_PassList::edit_text_highlight_ps, OVERLAY_PrivateData::edit_text_selection_grp, OVERLAY_PassList::edit_text_selection_ps, OVERLAY_PrivateData::edit_text_wire_grp, OVERLAY_PassList::edit_text_wire_ps, G_draw, OVERLAY_PrivateData::handle_display, View3DOverlay::handle_display, View3DOverlay::normals_length, View3D::overlay, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::rv3d, OVERLAY_PrivateData::selection_color, OVERLAY_PrivateData::shdata, OVERLAY_PrivateData::show_handles, state, OVERLAY_Data::stl, DRWContextState::v3d, and OVERLAY_PrivateData::view_edit_text.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_text_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 178 of file overlay_edit_text.cc.
References DRW_cache_text_edge_wire_get(), DRW_shgroup_call, Object::dtx, edit_text_cache_populate_boxes(), edit_text_cache_populate_cursor(), edit_text_cache_populate_select(), OVERLAY_PrivateData::edit_text_wire_grp, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_text_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 194 of file overlay_edit_text.cc.
References OVERLAY_PrivateData::cursor_color, DRW_draw_pass(), DRW_state_is_fbo(), DRW_view_set_active(), OVERLAY_PrivateData::edit_text, OVERLAY_PassList::edit_text_cursor_ps, OVERLAY_PassList::edit_text_highlight_ps, OVERLAY_PassList::edit_text_selection_ps, OVERLAY_PassList::edit_text_wire_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::selection_color, srgb_to_linearrgb_v4(), OVERLAY_Data::stl, TH_WIDGET_TEXT_CURSOR, TH_WIDGET_TEXT_HIGHLIGHT, TH_WIDGET_TEXT_SELECTION, UI_GetThemeColor4fv(), and OVERLAY_PrivateData::view_edit_text.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_uv_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 528 of file overlay_edit_uv.cc.
References OVERLAY_PrivateData::do_uv_stretching_overlay, OVERLAY_PrivateData::edit_uv, edit_uv_stretching_update_ratios(), OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_finish().
| void OVERLAY_edit_uv_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 186 of file overlay_edit_uv.cc.
References BrushClone::alpha, BKE_image_get_gpu_texture(), BKE_image_get_size_fl(), BKE_paint_brush(), BKE_view_layer_array_from_objects_in_mode_unique_data(), BLI_findlink(), BLI_snprintf(), DRW_Global::block_ubo, Brush::clone, OVERLAY_PrivateData::dash_length, Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, OVERLAY_PrivateData::do_face_dots, OVERLAY_PrivateData::do_faces, OVERLAY_PrivateData::do_mask_overlay, OVERLAY_PrivateData::do_smooth_wire, OVERLAY_PrivateData::do_stencil_overlay, OVERLAY_PrivateData::do_tiled_image_border_overlay, OVERLAY_PrivateData::do_tiled_image_overlay, OVERLAY_PrivateData::do_uv_overlay, OVERLAY_PrivateData::do_uv_shadow_overlay, OVERLAY_PrivateData::do_uv_stretching_overlay, OVERLAY_PrivateData::do_verts, OVERLAY_PrivateData::draw_type, DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call_obmat, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec2_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, OVERLAY_PrivateData::edit_uv, OVERLAY_PrivateData::edit_uv_edges_grp, OVERLAY_PassList::edit_uv_edges_ps, OVERLAY_PrivateData::edit_uv_face_dots_grp, OVERLAY_PrivateData::edit_uv_faces_grp, OVERLAY_PassList::edit_uv_faces_ps, OVERLAY_PassList::edit_uv_mask_ps, edit_uv_mask_texture(), OVERLAY_PrivateData::edit_uv_shadow_edges_grp, OVERLAY_PassList::edit_uv_stencil_ps, OVERLAY_PrivateData::edit_uv_stretching_grp, OVERLAY_PassList::edit_uv_stretching_ps, OVERLAY_PassList::edit_uv_tiled_image_borders_ps, OVERLAY_PrivateData::edit_uv_verts_grp, OVERLAY_PassList::edit_uv_verts_ps, float, G_draw, GPU_texture_original_height(), GPU_texture_original_width(), BrushClone::image, SpaceImage::image, OVERLAY_PrivateData::image_aspect, OVERLAY_PrivateData::image_size, ToolSettings::imapaint, OVERLAY_PrivateData::line_style, LISTBASE_FOREACH, M_SQRT2, OVERLAY_PrivateData::mask, MASK_OVERLAY_COMBINED, OVERLAY_PrivateData::mask_overlay_mode, OVERLAY_PrivateData::mask_texture, OB_MESH, DRWContextState::obact, DRWContextState::object_mode, BrushClone::offset, overlay_edit_uv_cache_populate(), OVERLAY_shader_edit_uv_edges_for_edge_select_get(), OVERLAY_shader_edit_uv_edges_get(), OVERLAY_shader_edit_uv_face_dots_get(), OVERLAY_shader_edit_uv_face_get(), OVERLAY_shader_edit_uv_mask_image(), OVERLAY_shader_edit_uv_stencil_image(), OVERLAY_shader_edit_uv_stretching_angle_get(), OVERLAY_shader_edit_uv_stretching_area_get(), OVERLAY_shader_edit_uv_tiled_image_borders_get(), OVERLAY_shader_edit_uv_verts_get(), OVERLAY_UV_LINE_STYLE_SHADOW, ImagePaintSettings::paint, OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::scene, SI_UVDT_STRETCH_ANGLE, DRWContextState::space_data, srgb_to_linearrgb_v4(), state, OVERLAY_Data::stl, OVERLAY_PrivateData::stretch_opacity, TH_BACK, TH_FACE_SELECT, TH_FACEDOT_SIZE, TH_VERTEX, TH_VERTEX_SIZE, tile, ImageTile::tile_number, OVERLAY_PrivateData::total_area_ratio, Object::type, UI_GetThemeColor4fv(), UI_GetThemeColorShade4fv(), UI_GetThemeColorShade4ubv(), UI_GetThemeValuef(), UI_SCALE_FAC, unit_m4(), OVERLAY_PrivateData::uv_aspect, ToolSettings::uv_flag, OVERLAY_PrivateData::uv_opacity, UV_SELECT_EDGE, ToolSettings::uv_selectmode, UV_SYNC_SELECTION, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_uv_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 546 of file overlay_edit_uv.cc.
References DefaultFramebufferList::default_fb, OVERLAY_PrivateData::do_faces, OVERLAY_PrivateData::do_mask_overlay, OVERLAY_PrivateData::do_stencil_overlay, OVERLAY_PrivateData::do_tiled_image_border_overlay, OVERLAY_PrivateData::do_uv_overlay, OVERLAY_PrivateData::do_uv_shadow_overlay, OVERLAY_PrivateData::do_uv_stretching_overlay, DRW_draw_pass(), DRW_viewport_framebuffer_list_get(), OVERLAY_PrivateData::edit_uv, OVERLAY_PassList::edit_uv_edges_ps, OVERLAY_PassList::edit_uv_faces_ps, OVERLAY_PassList::edit_uv_mask_ps, OVERLAY_PassList::edit_uv_stencil_ps, OVERLAY_PassList::edit_uv_stretching_ps, OVERLAY_PassList::edit_uv_tiled_image_borders_ps, OVERLAY_PassList::edit_uv_verts_ps, GPU_framebuffer_active_get(), GPU_framebuffer_bind(), MASK_OVERLAY_COMBINED, OVERLAY_PrivateData::mask_overlay_mode, OVERLAY_edit_uv_draw_finish(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_edit_uv_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 99 of file overlay_edit_uv.cc.
References BKE_paint_brush(), BLI_listbase_clear(), Brush::clone, OVERLAY_PrivateData::dash_length, DEG_get_evaluated_id(), DRWContextState::depsgraph, OVERLAY_PrivateData::do_face_dots, OVERLAY_PrivateData::do_faces, OVERLAY_PrivateData::do_mask_overlay, OVERLAY_PrivateData::do_smooth_wire, OVERLAY_PrivateData::do_stencil_overlay, OVERLAY_PrivateData::do_tiled_image_border_overlay, OVERLAY_PrivateData::do_tiled_image_overlay, OVERLAY_PrivateData::do_uv_overlay, OVERLAY_PrivateData::do_uv_shadow_overlay, OVERLAY_PrivateData::do_uv_stretching_overlay, OVERLAY_PrivateData::do_verts, MaskSpaceInfo::draw_flag, OVERLAY_PrivateData::draw_type, DRW_context_state_get(), SpaceImage::dt_uvstretch, ED_space_image_get_aspect(), ED_space_image_get_size(), ED_space_image_get_uv_aspect(), OVERLAY_PrivateData::edit_uv, edit_uv_line_style_from_space_image(), ELEM, SpaceImage::flag, OVERLAY_PrivateData::hide_overlays, Mask::id, IMA_SRC_TILED, IMA_TYPE_IMAGE, IMA_TYPE_MULTILAYER, IMA_TYPE_UV_TEST, BrushClone::image, SpaceImage::image, OVERLAY_PrivateData::image_aspect, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_CLONE, OVERLAY_PrivateData::image_size, ToolSettings::imapaint, OVERLAY_PrivateData::line_style, MaskSpaceInfo::mask, OVERLAY_PrivateData::mask, MASK_DRAWFLAG_OVERLAY, SpaceImage::mask_info, OVERLAY_PrivateData::mask_overlay_mode, SpaceImage::mode, OB_MODE_EDIT, OB_MODE_TEXTURE_PAINT, DRWContextState::object_edit, DRWContextState::object_mode, MaskSpaceInfo::overlay_mode, ImagePaintSettings::paint, OVERLAY_StorageList::pd, SCE_SELECT_FACE, DRWContextState::scene, ToolSettings::selectmode, SI_DRAW_STRETCH, SI_DRAWSHADOW, SI_MODE_MASK, SI_MODE_PAINT, SI_MODE_UV, SI_MODE_VIEW, SI_NO_DRAW_TEXPAINT, SI_NO_DRAWFACES, DRWContextState::space_data, OVERLAY_Data::stl, OVERLAY_PrivateData::stretch_opacity, SpaceImage::stretch_opacity, OVERLAY_PrivateData::total_area_ratio, OVERLAY_PrivateData::totals, UI_SCALE_FAC, USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE, OVERLAY_PrivateData::uv_aspect, ToolSettings::uv_flag, OVERLAY_PrivateData::uv_opacity, SpaceImage::uv_opacity, UV_SELECT_EDGE, UV_SELECT_FACE, ToolSettings::uv_selectmode, and UV_SYNC_SELECTION.
Referenced by OVERLAY_engine_init().
| void OVERLAY_empty_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 325 of file overlay_extra.cc.
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, 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], | ||
| float | draw_size, | ||
| char | draw_type, | ||
| const float | color[4] ) |
Definition at line 287 of file overlay_extra.cc.
References 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 1661 of file overlay_extra.cc.
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 55 of file overlay_extra.cc.
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_icon_inner_lines_get(), DRW_cache_light_icon_outer_lines_get(), DRW_cache_light_icon_sun_rays_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_icon_inner, OVERLAY_ExtraCallBuffers::light_icon_outer, OVERLAY_ExtraCallBuffers::light_icon_sun_rays, 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, 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 1583 of file overlay_extra.cc.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, BASE_SELECTED, BKE_modifier_is_enabled(), BKE_modifiers_findby_type(), Object::boundtype, 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, OB_ARMATURE, OB_AXIS, OB_BOUNDBOX, OB_CAMERA, OB_DRAWBOUNDOX, OB_DRAWNAME, OB_EMPTY, OB_GPENCIL_LEGACY, OB_LAMP, OB_LATTICE, OB_LIGHTPROBE, OB_MODE_ALL_PAINT, OB_MODE_ALL_PAINT_GPENCIL, OB_MODE_OBJECT, OB_MODE_SCULPT_CURVES, OB_SPEAKER, OB_TEXSPACE, DRWContextState::object_mode, 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(), Object::pd, OVERLAY_StorageList::pd, Object::rigidbody_object, SCE_XFORM_DATA_ORIGIN, DRWContextState::scene, OVERLAY_Data::stl, 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 255 of file overlay_extra.cc.
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 1676 of file overlay_extra.cc.
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 1666 of file overlay_extra.cc.
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 1671 of file overlay_extra.cc.
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], | ||
| int | color_id ) |
Definition at line 246 of file overlay_extra.cc.
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 237 of file overlay_extra.cc.
References 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, |
| blender::gpu::Batch * | geom, | ||
| const float | mat[4][4], | ||
| const float | color[4] ) |
Definition at line 262 of file overlay_extra.cc.
References 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 232 of file overlay_extra.cc.
References DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_points.
Referenced by OVERLAY_relationship_lines().
| void OVERLAY_extra_wire | ( | OVERLAY_ExtraCallBuffers * | cb, |
| blender::gpu::Batch * | geom, | ||
| const float | mat[4][4], | ||
| const float | color[4] ) |
Definition at line 272 of file overlay_extra.cc.
References col, 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().
| void OVERLAY_facing_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_facing.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_CULL_BACK, DRW_STATE_DEPTH_EQUAL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::facing_grp, OVERLAY_PassList::facing_ps, View3DShading::flag, G_draw, IN_FRONT, NOT_IN_FRONT, OB_SOLID, OVERLAY_shader_facing(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, View3D::shading, state, OVERLAY_Data::stl, View3DShading::type, OVERLAY_PrivateData::use_in_front, DRWContextState::v3d, and V3D_SHADING_BACKFACE_CULLING.
Referenced by OVERLAY_cache_init().
| void OVERLAY_facing_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 47 of file overlay_facing.cc.
References BKE_sculptsession_use_pbvh_draw(), DRW_cache_object_surface_get(), DRW_context_state_get(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), DRW_state_is_image_render(), Object::dtx, OVERLAY_PrivateData::facing_grp, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, DRWContextState::rv3d, OVERLAY_Data::stl, and OVERLAY_PrivateData::xray_enabled.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_facing_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 71 of file overlay_facing.cc.
References DRW_draw_pass(), OVERLAY_PassList::facing_ps, NOT_IN_FRONT, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_facing_infront_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 78 of file overlay_facing.cc.
References DRW_draw_pass(), OVERLAY_PassList::facing_ps, IN_FRONT, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_facing_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 14 of file overlay_facing.cc.
Referenced by OVERLAY_engine_init().
| void OVERLAY_fade_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 19 of file overlay_fade.cc.
References View3DShading::background_type, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, ED_view3d_background_color_get(), View3DOverlay::fade_alpha, OVERLAY_PrivateData::fade_grp, OVERLAY_PassList::fade_ps, IN_FRONT, NOT_IN_FRONT, OVERLAY_PrivateData::overlay, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::scene, View3D::shading, srgb_to_linearrgb_v4(), state, OVERLAY_Data::stl, OVERLAY_PrivateData::use_in_front, DRWContextState::v3d, and V3D_SHADING_BACKGROUND_THEME.
Referenced by OVERLAY_cache_init().
| void OVERLAY_fade_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 47 of file overlay_fade.cc.
References BKE_sculptsession_use_pbvh_draw(), DRW_cache_object_surface_get(), DRW_context_state_get(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), DRW_state_is_image_render(), Object::dtx, OVERLAY_PrivateData::fade_grp, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, DRWContextState::rv3d, OVERLAY_Data::stl, and OVERLAY_PrivateData::xray_enabled.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_fade_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 71 of file overlay_fade.cc.
References DRW_draw_pass(), OVERLAY_PassList::fade_ps, NOT_IN_FRONT, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_fade_infront_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 78 of file overlay_fade.cc.
References DRW_draw_pass(), OVERLAY_PassList::fade_ps, IN_FRONT, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_fade_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 17 of file overlay_fade.cc.
| void OVERLAY_gpencil_legacy_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 208 of file overlay_gpencil_legacy.cc.
References add_v3_v3(), BKE_gpencil_layer_active_get(), DRW_Global::block_ubo, bGPgrid::color, copy_m3_m4(), copy_m4_m4(), copy_v3_v3(), CURVE_HANDLE_NONE, Object::data, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call_procedural_lines(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_view_viewmat_get(), ED_scene_grid_scale(), OVERLAY_PrivateData::edit_curve, View3D::flag2, G_draw, View3D::gp_flag, GP_LOCKAXIS_CURSOR, GP_LOCKAXIS_VIEW, GP_LOCKAXIS_X, GP_LOCKAXIS_Y, GP_LOCKAXIS_Z, GP_PROJECT_CURSOR, GP_PROJECT_DEPTH_STROKE, GP_PROJECT_DEPTH_VIEW, GP_PROJECT_VIEWSPACE, ToolSettings::gp_sculpt, OVERLAY_PassList::gpencil_canvas_ps, View3DOverlay::gpencil_grid_opacity, ToolSettings::gpencil_v3d_align, bGPdata::grid, OVERLAY_PrivateData::handle_display, View3DOverlay::handle_display, bGPDlayer::layer_mat, bGPgrid::lines, loc_eul_size_to_mat4(), GP_Sculpt_Settings::lock_axis, max_ff(), mul_m4_m4m3(), mul_v2_v2fl(), OB_GPENCIL_LEGACY, DRWContextState::obact, bGPgrid::offset, View3D::overlay, OVERLAY_shader_gpencil_canvas(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, rescale_m4(), bGPgrid::scale, DRWContextState::scene, OVERLAY_PrivateData::show_handles, state, OVERLAY_Data::stl, swap_v4_v4(), translate_m4(), Object::type, DRWContextState::v3d, V3D_GP_SHOW_GRID, V3D_GP_SHOW_GRID_XRAY, and V3D_HIDE_OVERLAYS.
Referenced by OVERLAY_cache_init().
| void OVERLAY_gpencil_legacy_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 325 of file overlay_gpencil_legacy.cc.
References DRW_draw_pass(), OVERLAY_PassList::gpencil_canvas_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_grease_pencil_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 189 of file overlay_grease_pencil.cc.
References DRW_Global::block_ubo, Object::data, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call_procedural_lines(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_view_viewmat_get(), View3D::flag2, blender::math::from_loc_scale(), G_draw, View3D::gp_flag, GP_LOCKAXIS_CURSOR, GP_LOCKAXIS_VIEW, GP_LOCKAXIS_X, GP_LOCKAXIS_Y, GP_LOCKAXIS_Z, GP_PROJECT_CURSOR, GP_PROJECT_DEPTH_STROKE, GP_PROJECT_DEPTH_VIEW, ToolSettings::gp_sculpt, View3DOverlay::gpencil_grid_color, View3DOverlay::gpencil_grid_offset, View3DOverlay::gpencil_grid_opacity, View3DOverlay::gpencil_grid_scale, View3DOverlay::gpencil_grid_subdivisions, ToolSettings::gpencil_v3d_align, OVERLAY_PassList::grease_pencil_canvas_ps, blender::MatBase< T, NumCol, NumRow, Alignment >::location(), GP_Sculpt_Settings::lock_axis, OB_GREASE_PENCIL, DRWContextState::obact, View3D::overlay, OVERLAY_shader_gpencil_canvas(), OVERLAY_Data::psl, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), DRWContextState::scene, state, Object::type, DRWContextState::v3d, V3D_GP_SHOW_GRID, V3D_GP_SHOW_GRID_XRAY, V3D_HIDE_OVERLAYS, and blender::MatBase< T, NumCol, NumRow, Alignment >::view().
Referenced by OVERLAY_cache_init().
| void OVERLAY_grease_pencil_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 386 of file overlay_grease_pencil.cc.
References DRW_draw_pass(), OVERLAY_PassList::grease_pencil_canvas_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_grid_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 223 of file overlay_grid.cc.
References DRW_Global::block, DRW_Global::block_ubo, GlobalsUboStorage::color_background, GlobalsUboStorage::color_grid, DefaultTextureList::depth, DRW_cache_grid_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_PASS_CREATE, DRW_shgroup_call, DRW_shgroup_call_obmat, DRW_shgroup_create(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_texture_ref(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_state_is_fbo(), DRW_STATE_WRITE_COLOR, DRW_viewport_texture_list_get(), G_draw, GPU_uniformbuf_create, GPU_uniformbuf_update(), OVERLAY_PrivateData::grid, OVERLAY_PrivateData::grid_axes, OVERLAY_PrivateData::grid_data, OVERLAY_PrivateData::grid_flag, OVERLAY_PassList::grid_ps, OVERLAY_Data::instance, interp_v4_v4v4(), OVERLAY_shader_grid(), OVERLAY_shader_grid_background(), OVERLAY_shader_grid_image(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, SHOW_AXIS_Z, SPACE_IMAGE, OVERLAY_PrivateData::space_type, srgb_to_linearrgb_v4(), state, OVERLAY_Data::stl, TH_BACK, UI_GetThemeColorShade4fv(), unit_m4(), x, y, OVERLAY_PrivateData::zneg_flag, OVERLAY_PrivateData::zplane_axes, and OVERLAY_PrivateData::zpos_flag.
Referenced by OVERLAY_cache_init().
| void OVERLAY_grid_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 318 of file overlay_grid.cc.
References DRW_draw_pass(), OVERLAY_PassList::grid_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_grid_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 32 of file overlay_grid.cc.
References View3D::camera, View3D::clip_end, CLIP_ZNEG, CLIP_ZPOS, copy_v3_fl(), copy_v3_fl3(), copy_v3_v3(), CUSTOM_GRID, Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, DRW_context_state_get(), DRW_view_viewmat_get(), DRW_view_winmat_get(), ED_space_image_grid_steps(), ED_space_image_has_buffer(), ED_space_image_zoom_level(), ED_view3d_grid_steps(), ELEM, fabsf, SpaceImage::flag, SpaceImageOverlay::flag, View3D::flag, float, OVERLAY_PrivateData::grid, OVERLAY_PrivateData::grid_axes, GRID_BACK, GRID_CAMERA, OVERLAY_PrivateData::grid_data, OVERLAY_PrivateData::grid_flag, SpaceImage::grid_shape_source, OVERLAY_PrivateData::hide_overlays, len_v3(), max_ff(), min_ff(), SpaceImage::mode, negate_v3_v3(), OB_CAMERA, SpaceImage::overlay, RegionView3D::persp, PLANE_IMAGE, PLANE_XY, PLANE_XZ, PLANE_YZ, DRWContextState::region, DRWContextState::rv3d, RV3D_CAMOB, RV3D_ORTHO, RV3D_VIEW_BACK, RV3D_VIEW_BOTTOM, RV3D_VIEW_FRONT, RV3D_VIEW_LEFT, RV3D_VIEW_RIGHT, RV3D_VIEW_TOP, RV3D_VIEW_USER, DRWContextState::scene, SHOW_AXIS_X, SHOW_AXIS_Y, SHOW_AXIS_Z, SHOW_GRID, SI_GRID_OVER_IMAGE, SI_GRID_SHAPE_DYNAMIC, SI_GRID_STEPS_LEN, SI_MODE_UV, SI_OVERLAY_SHOW_GRID_BACKGROUND, DRWContextState::space_data, SPACE_IMAGE, OVERLAY_PrivateData::space_type, SpaceImage::tile_grid_shape, Object::type, ARegion::v2d, DRWContextState::v3d, OVERLAY_PrivateData::v3d_gridflag, V3D_SHOW_FLOOR, V3D_SHOW_ORTHO_GRID, V3D_SHOW_X, V3D_SHOW_Y, V3D_SHOW_Z, V3D_XR_SESSION_MIRROR, V3D_XR_SESSION_SURFACE, RegionView3D::view, OVERLAY_PrivateData::zneg_flag, OVERLAY_PrivateData::zplane_axes, and OVERLAY_PrivateData::zpos_flag.
Referenced by OVERLAY_engine_init().
| void OVERLAY_image_background_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 462 of file overlay_image.cc.
References DRW_draw_pass(), OVERLAY_PassList::image_background_ps, OVERLAY_PassList::image_empties_back_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_image_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 438 of file overlay_image.cc.
References DRW_pass_sort_shgroup_z(), OVERLAY_PassList::image_empties_back_ps, OVERLAY_PassList::image_empties_blend_ps, OVERLAY_PassList::image_empties_front_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_cache_finish().
| void OVERLAY_image_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 39 of file overlay_image.cc.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_BLEND_ALPHA_UNDER_PREMUL, DRW_STATE_DEPTH_GREATER, DRW_STATE_DEPTH_LESS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PassList::image_background_ps, OVERLAY_PassList::image_background_scene_ps, OVERLAY_PassList::image_empties_back_ps, OVERLAY_PassList::image_empties_blend_ps, OVERLAY_PassList::image_empties_front_ps, OVERLAY_PassList::image_empties_ps, OVERLAY_PassList::image_foreground_ps, OVERLAY_PassList::image_foreground_scene_ps, OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_image_camera_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 291 of file overlay_image.cc.
References Camera::bg_images, BKE_camera_multiview_model_matrix(), BKE_object_empty_image_frame_is_visible_in_view3d(), CAM_BGIMG_FLAG_DISABLED, CAM_BGIMG_FLAG_FOREGROUND, camera_background_images_stereo_eye(), Object::data, DRW_cache_quad_get(), DRW_context_state_get(), DRW_shgroup_call_obmat, DRW_shgroup_create(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec4_copy(), DRW_state_is_select(), OVERLAY_PassList::image_background_ps, OVERLAY_PassList::image_background_scene_ps, image_camera_background_matrix_get(), image_camera_background_texture_get(), OVERLAY_PassList::image_foreground_ps, OVERLAY_PassList::image_foreground_scene_ps, LISTBASE_FOREACH, OVERLAY_shader_image(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::rv3d, DRWContextState::scene, STEREO_LEFT_ID, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, OVERLAY_Data::stl, tex, and DRWContextState::v3d.
Referenced by OVERLAY_camera_cache_populate().
| void OVERLAY_image_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 470 of file overlay_image.cc.
References DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PassList::image_empties_blend_ps, OVERLAY_PassList::image_empties_ps, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_reference_images.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_image_empty_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 352 of file overlay_image.cc.
References Image::alpha_mode, BKE_image_get_gpu_texture(), BKE_object_empty_image_data_is_visible_in_view3d(), BKE_object_empty_image_frame_is_visible_in_view3d(), camera_background_images_stereo_setup(), CLAMP_MIN, color, Object::color, copy_m4_m4(), Object::data, DRW_cache_quad_get(), DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_shgroup_call_obmat, DRW_shgroup_create(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec4_copy(), DRW_state_is_depth(), Object::dtx, Object::empty_drawsize, Object::empty_image_depth, Object::empty_image_flag, GPU_texture_original_height(), GPU_texture_original_width(), IMA_ALPHA_PREMUL, Object::ima_ofs, OVERLAY_PassList::image_empties_back_ps, OVERLAY_PassList::image_empties_blend_ps, OVERLAY_PassList::image_empties_front_ps, OVERLAY_PassList::image_empties_ps, Object::iuser, madd_v3_v3fl(), mul_v3_fl(), OB_DRAW_IN_FRONT, OB_EMPTY_IMAGE, OB_EMPTY_IMAGE_DEPTH_BACK, OB_EMPTY_IMAGE_DEPTH_DEFAULT, OB_EMPTY_IMAGE_DEPTH_FRONT, OB_EMPTY_IMAGE_USE_ALPHA_BLEND, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), overlay_image_calc_aspect(), OVERLAY_shader_image(), OVERLAY_Data::psl, DRWContextState::rv3d, DRWContextState::scene, tex, DRWContextState::v3d, and DRWContextState::view_layer.
Referenced by OVERLAY_empty_cache_populate().
| void OVERLAY_image_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 483 of file overlay_image.cc.
References DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PassList::image_empties_front_ps, OVERLAY_PassList::image_foreground_ps, OVERLAY_image_free_movieclips_textures(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_reference_images.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_image_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 30 of file overlay_image.cc.
References DRW_context_state_get(), DRW_view_create_with_zoffset(), DRW_view_default_get(), OVERLAY_StorageList::pd, DRWContextState::rv3d, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_reference_images.
Referenced by OVERLAY_engine_init().
| void OVERLAY_image_scene_background_draw | ( | OVERLAY_Data * | vedata | ) |
This function draws images that needs the view transform applied. It draws these images directly into the scene color buffer.
Definition at line 447 of file overlay_image.cc.
References DefaultFramebufferList::default_fb, DRW_draw_pass(), DRW_pass_is_empty(), DRW_state_is_fbo(), DRW_viewport_framebuffer_list_get(), GPU_framebuffer_bind(), OVERLAY_PassList::image_background_scene_ps, OVERLAY_PassList::image_foreground_scene_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_lattice_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 47 of file overlay_lattice.cc.
References color, DRW_cache_lattice_wire_get(), DRW_context_state_get(), DRW_object_wire_theme_get(), OVERLAY_extra_call_buffer_get(), OVERLAY_extra_wire(), and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_light_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 602 of file overlay_extra.cc.
References Light::area_shape, Light::area_size, Light::area_sizey, Light::att_dist, b, Light::clipsta, copy_m4_m4(), copy_v3_v3(), cosf, Object::data, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), ELEM, View3DOverlay::flag, 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_icon_inner, OVERLAY_ExtraCallBuffers::light_icon_outer, OVERLAY_ExtraCallBuffers::light_icon_sun_rays, 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, OVERLAY_PrivateData::overlay, OVERLAY_extra_call_buffer_get(), OVERLAY_StorageList::pd, pos, Light::r, Light::radius, rescale_m4(), Light::spotblend, Light::spotsize, sqr(), sqrtf, OVERLAY_Data::stl, Light::type, UNPACK3, V3D_OVERLAY_SHOW_LIGHT_COLORS, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_lightprobe_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 709 of file overlay_extra.cc.
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, LightProbe::grid_surfel_density, 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_PLANE, LIGHTPROBE_TYPE_SPHERE, LIGHTPROBE_TYPE_VOLUME, mul_v3_fl(), normalize_m4_m4(), normalize_v3_length(), OB_CUBE, OB_EMPTY_SPHERE, OB_SINGLE_ARROW, 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, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), reduce_max(), OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_Data::stl, TH_ACTIVE, LightProbe::type, DRWContextState::view_layer, and zero_v3().
Referenced by OVERLAY_cache_populate().
| void OVERLAY_metaball_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 22 of file overlay_metaball.cc.
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, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_metaball_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 105 of file overlay_metaball.cc.
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 123 of file overlay_metaball.cc.
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 130 of file overlay_metaball.cc.
References DRW_draw_pass(), OVERLAY_PassList::metaball_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_mode_transfer_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 144 of file overlay_mode_transfer.cc.
References OVERLAY_PrivateData::any_animated, DRW_viewport_request_redraw(), OVERLAY_PrivateData::mode_transfer, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_finish().
| void OVERLAY_mode_transfer_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 23 of file overlay_mode_transfer.cc.
References BLI_time_now_seconds(), OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::mode_transfer, OVERLAY_PassList::mode_transfer_ps, OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, and OVERLAY_PrivateData::time.
Referenced by OVERLAY_cache_init().
| void OVERLAY_mode_transfer_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 76 of file overlay_mode_transfer.cc.
References OVERLAY_PrivateData::any_animated, BKE_sculptsession_use_pbvh_draw(), DRW_Global::block_ubo, DRW_cache_object_surface_get(), DRW_context_state_get(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_vec4_copy(), DRW_state_is_image_render(), Object::dtx, G_draw, IN_FRONT, OVERLAY_PrivateData::mode_transfer, mode_transfer_alpha_for_action_slot_time_get(), mode_transfer_is_animation_running(), OVERLAY_PassList::mode_transfer_ps, mul_v3_fl(), NOT_IN_FRONT, OB_DRAW_IN_FRONT, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, Object::runtime, DRWContextState::rv3d, srgb_to_linearrgb_v4(), OVERLAY_Data::stl, TH_VERTEX_SELECT, OVERLAY_PrivateData::time, UI_GetThemeColor3fv(), OVERLAY_PrivateData::use_in_front, and OVERLAY_PrivateData::xray_enabled.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_mode_transfer_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 130 of file overlay_mode_transfer.cc.
References DRW_draw_pass(), OVERLAY_PassList::mode_transfer_ps, NOT_IN_FRONT, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_mode_transfer_infront_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 137 of file overlay_mode_transfer.cc.
References DRW_draw_pass(), IN_FRONT, OVERLAY_PassList::mode_transfer_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_motion_path_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 27 of file overlay_motion_path.cc.
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, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_motion_path_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 241 of file overlay_motion_path.cc.
References bPose::avs, Object::avs, bPose::chanbase, DRW_context_state_get(), LISTBASE_FOREACH, motion_path_cache(), Object::mpath, 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 260 of file overlay_motion_path.cc.
References DRW_draw_pass(), OVERLAY_PassList::motion_paths_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_outline_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 115 of file overlay_outline.cc.
References OVERLAY_PrivateData::antialiasing, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DefaultTextureList::depth, DRW_PASS_CREATE, DRW_shgroup_call_procedural_triangles(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_texture_ref(), DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_PrivateData::enabled, G, G_draw, G_TRANSFORM_OBJ, OVERLAY_PrivateData::outlines_curves_grp, OVERLAY_PassList::outlines_detect_ps, OVERLAY_PrivateData::outlines_gpencil_grp, OVERLAY_PrivateData::outlines_grp, OVERLAY_TextureList::outlines_id_tx, OVERLAY_PassList::outlines_prepass_ps, OVERLAY_PrivateData::outlines_ptcloud_grp, OVERLAY_shader_outline_detect(), OVERLAY_shader_outline_prepass(), OVERLAY_shader_outline_prepass_curves(), OVERLAY_shader_outline_prepass_gpencil(), OVERLAY_shader_outline_prepass_pointcloud(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, TH_OUTLINE_WIDTH, OVERLAY_Data::txl, UI_GetThemeValuef(), OVERLAY_PrivateData::v3d_flag, V3D_SELECT_OUTLINE, OVERLAY_PrivateData::xray_enabled, and OVERLAY_PrivateData::xray_enabled_and_not_wire.
Referenced by OVERLAY_cache_init().
| void OVERLAY_outline_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob, | ||
| OVERLAY_DupliData * | dupli, | ||
| bool | init_dupli ) |
Definition at line 309 of file overlay_outline.cc.
References DRW_cache_object_edge_detection_get(), DRW_cache_object_surface_get(), DRW_context_state_get(), DRW_object_axis_orthogonal_to_view(), DRW_object_is_flat(), DRW_shgroup_call, Object::dt, OB_BOUNDBOX, OB_CURVES, OB_GREASE_PENCIL, OB_POINTCLOUD, OB_VOLUME, OVERLAY_DupliData::outline_geom, OVERLAY_DupliData::outline_shgrp, OVERLAY_PrivateData::outlines_grp, OVERLAY_outline_curves(), OVERLAY_outline_grease_pencil(), OVERLAY_outline_pointcloud(), OVERLAY_outline_volume(), OVERLAY_StorageList::pd, RegionView3D::persp, DRWContextState::rv3d, RV3D_ORTHO, DRWContextState::scene, OVERLAY_Data::stl, Object::type, and OVERLAY_PrivateData::xray_enabled_and_not_wire.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_outline_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 378 of file overlay_outline.cc.
References DRW_draw_pass(), DRW_pass_is_empty(), DRW_state_is_fbo(), DRW_stats_group_end(), DRW_stats_group_start(), OVERLAY_Data::fbl, GPU_framebuffer_bind(), GPU_framebuffer_clear_color_depth_stencil(), OVERLAY_PassList::outlines_detect_ps, OVERLAY_FramebufferList::outlines_prepass_fb, OVERLAY_PassList::outlines_prepass_ps, OVERLAY_FramebufferList::outlines_resolve_fb, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_outline_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 81 of file overlay_outline.cc.
References OVERLAY_PrivateData::antialiasing, DRW_state_is_fbo(), DRW_texture_ensure_fullscreen_2d(), DRW_viewport_texture_list_get(), OVERLAY_PrivateData::enabled, OVERLAY_Data::fbl, GPU_DEPTH24_STENCIL8, GPU_framebuffer_ensure_config, GPU_R16UI, OVERLAY_TextureList::outlines_id_tx, OVERLAY_FramebufferList::outlines_prepass_fb, OVERLAY_FramebufferList::outlines_resolve_fb, OVERLAY_StorageList::pd, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, and OVERLAY_Data::txl.
Referenced by OVERLAY_engine_init().
| void OVERLAY_paint_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 70 of file overlay_paint.cc.
References OVERLAY_PrivateData::alpha_blending, Image::alpha_mode, BKE_image_get_gpu_texture(), BKE_scene_uses_blender_workbench(), BLI_assert, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, copy_v3_fl3(), OVERLAY_PrivateData::ctx_mode, CTX_MODE_EDIT_MESH, CTX_MODE_PAINT_TEXTURE, CTX_MODE_PAINT_VERTEX, CTX_MODE_PAINT_WEIGHT, CTX_MODE_POSE, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_EQUAL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, ImagePaintSettings::flag, G_draw, IMA_ALPHA_PREMUL, IMAGEPAINT_PROJECT_LAYER_STENCIL, IMAGEPAINT_PROJECT_LAYER_STENCIL_INV, ToolSettings::imapaint, normalize_v3(), OB_SOLID, OB_WIRE, OVERLAY_PrivateData::overlay, OVERLAY_shader_depth_only(), OVERLAY_shader_paint_face(), OVERLAY_shader_paint_point(), OVERLAY_shader_paint_texture(), OVERLAY_shader_paint_vertcol(), OVERLAY_shader_paint_weight(), OVERLAY_shader_paint_wire(), OVERLAY_PassList::paint_color_ps, OVERLAY_PrivateData::paint_depth_grp, OVERLAY_PassList::paint_depth_ps, OVERLAY_PrivateData::paint_face_grp, OVERLAY_PassList::paint_overlay_ps, OVERLAY_PrivateData::paint_point_grp, OVERLAY_PrivateData::paint_surf_grp, OVERLAY_PrivateData::paint_wire_grp, OVERLAY_PrivateData::paint_wire_selected_grp, OVERLAY_PrivateData::painting, OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::scene, View3D::shading, state, ImagePaintSettings::stencil, ImagePaintSettings::stencil_col, OVERLAY_Data::stl, tex, View3DOverlay::texture_paint_mode_opacity, Scene::toolsettings, View3DShading::type, DRWContextState::v3d, V3D_OVERLAY_WPAINT_CONTOURS, View3DOverlay::vertex_paint_mode_opacity, View3DOverlay::weight_paint_mode_opacity, DRW_Global::weight_ramp, and View3DOverlay::wpaint_flag.
Referenced by OVERLAY_cache_init().
| void OVERLAY_paint_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 265 of file overlay_paint.cc.
References DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_PrivateData::in_front, OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_FramebufferList::overlay_in_front_fb, OVERLAY_PassList::paint_color_ps, OVERLAY_PassList::paint_depth_ps, OVERLAY_PassList::paint_overlay_ps, OVERLAY_PrivateData::painting, OVERLAY_StorageList::pd, OVERLAY_Data::psl, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_paint_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 58 of file overlay_paint.cc.
References OVERLAY_PrivateData::alpha_blending, DRW_context_state_get(), Object::dtx, OVERLAY_PrivateData::in_front, OB_DRAW_IN_FRONT, DRWContextState::obact, paint_object_is_rendered_transparent(), OVERLAY_PrivateData::painting, OVERLAY_StorageList::pd, OVERLAY_Data::stl, OVERLAY_PrivateData::use_in_front, and DRWContextState::v3d.
Referenced by OVERLAY_engine_init().
| void OVERLAY_paint_texture_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 203 of file overlay_paint.cc.
References Object::data, DEG_get_original_object(), DRW_cache_mesh_surface_get(), DRW_cache_mesh_surface_texpaint_single_get(), DRW_shgroup_call, Mesh::editflag, ME_EDIT_PAINT_FACE_SEL, OVERLAY_PrivateData::paint_face_grp, OVERLAY_PrivateData::paint_surf_grp, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_paint_vertex_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 222 of file overlay_paint.cc.
References OVERLAY_PrivateData::ctx_mode, CTX_MODE_EDIT_MESH, Object::data, DEG_get_original_object(), DRW_cache_mesh_all_verts_get(), DRW_cache_mesh_surface_edges_get(), DRW_cache_mesh_surface_get(), DRW_cache_mesh_surface_weights_get(), DRW_shgroup_call, Mesh::editflag, ELEM, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, Object::mode, OB_MODE_EDIT, OB_MODE_WEIGHT_PAINT, OVERLAY_PrivateData::overlay, OVERLAY_PrivateData::paint_depth_grp, OVERLAY_PrivateData::paint_face_grp, View3DOverlay::paint_flag, OVERLAY_PrivateData::paint_point_grp, OVERLAY_PrivateData::paint_surf_grp, OVERLAY_PrivateData::paint_wire_grp, OVERLAY_PrivateData::paint_wire_selected_grp, OVERLAY_StorageList::pd, OVERLAY_Data::stl, and V3D_OVERLAY_PAINT_WIRE.
Referenced by OVERLAY_cache_populate(), and OVERLAY_paint_weight_cache_populate().
| void OVERLAY_paint_weight_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 260 of file overlay_paint.cc.
References OVERLAY_paint_vertex_cache_populate().
Referenced by OVERLAY_cache_populate().
| void OVERLAY_particle_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 128 of file overlay_particle.cc.
References DRW_Global::block_ubo, ParticleEditSettings::brushtype, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_texture(), DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_particle, G_draw, OVERLAY_shader_particle_dot(), OVERLAY_shader_particle_shape(), OVERLAY_PrivateData::particle_dots_grp, OVERLAY_PassList::particle_ps, OVERLAY_PrivateData::particle_shapes_grp, OVERLAY_StorageList::pd, PE_BRUSH_WEIGHT, PE_settings(), OVERLAY_Data::psl, DRW_Global::ramp, DRWContextState::scene, OVERLAY_PrivateData::select_mode, ParticleEditSettings::selectmode, state, OVERLAY_Data::stl, and OVERLAY_PrivateData::use_weight.
Referenced by OVERLAY_cache_init().
| void OVERLAY_particle_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 154 of file overlay_particle.cc.
References BKE_object_material_get_eval(), copy_v3_v3(), DRW_cache_particles_get_dots(), DRW_cache_particles_get_prim(), DRW_object_is_visible_psys_in_active_context(), DRW_shgroup_call, DRW_shgroup_call_instances_with_attrs(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_vec4_copy(), ELEM, LISTBASE_FOREACH, PART_DRAW_AXIS, PART_DRAW_CIRC, PART_DRAW_CROSS, PART_DRAW_DOT, PART_DRAW_GR, PART_DRAW_NOT, PART_DRAW_OB, PART_DRAW_REND, PART_HAIR, OVERLAY_PrivateData::particle_dots_grp, OVERLAY_PrivateData::particle_shapes_grp, Object::particlesystem, OVERLAY_StorageList::pd, Material::r, ParticleSettings::ren_as, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_particle_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 205 of file overlay_particle.cc.
References DRW_draw_pass(), OVERLAY_PassList::particle_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_pose_armature_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 3200 of file overlay_armature.cc.
References blender::draw::overlay::ARM_DRAW_MODE_POSE, armature_context_setup(), blender::draw::overlay::Armatures::draw_armature_pose(), OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_pose_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 3242 of file overlay_armature.cc.
References OVERLAY_PrivateData::armature_bone_select_act_grp, OVERLAY_PrivateData::armature_bone_select_grp, DRW_cache_object_surface_get(), DRW_shgroup_call, OVERLAY_StorageList::pd, POSE_is_driven_by_active_armature(), and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_pose_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 3288 of file overlay_armature.cc.
References OVERLAY_PassList::armature_bone_select_ps, OVERLAY_PassList::armature_ps, OVERLAY_PassList::armature_transp_ps, DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_Data::fbl, GPU_framebuffer_bind(), GPU_framebuffer_clear_depth(), OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_FramebufferList::overlay_line_in_front_fb, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_sculpt_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 22 of file overlay_sculpt.cc.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_float_copy(), DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_PrivateData::overlay, OVERLAY_shader_sculpt_mask(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::sculpt_mask_grp, OVERLAY_PassList::sculpt_mask_ps, View3DOverlay::sculpt_mode_face_sets_opacity, View3DOverlay::sculpt_mode_mask_opacity, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_sculpt_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 38 of file overlay_sculpt.cc.
References Geometry::attributes, BKE_sculptsession_use_pbvh_draw(), BLI_assert_unreachable, bm, SculptSession::bm, blender::bke::pbvh::BMesh, CD_PROP_FLOAT, CustomData_has_layer_named(), Object::data, DEG_get_original_id(), DRW_context_state_get(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), blender::bke::pbvh::Grids, Object::id, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), SubdivCCG::masks, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), OVERLAY_StorageList::pd, BMesh::pdata, DRWContextState::rv3d, Object::sculpt, OVERLAY_PrivateData::sculpt_mask_grp, OVERLAY_Data::stl, SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::type(), and BMesh::vdata.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_sculpt_curves_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 20 of file overlay_sculpt_curves.cc.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_float_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_EQUAL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_PrivateData::overlay, OVERLAY_shader_sculpt_curves_cage(), OVERLAY_shader_sculpt_curves_selection(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::sculpt_curves_cage_lines_grp, View3DOverlay::sculpt_curves_cage_opacity, OVERLAY_PassList::sculpt_curves_cage_ps, OVERLAY_PrivateData::sculpt_curves_selection_grp, OVERLAY_PassList::sculpt_curves_selection_ps, View3DOverlay::sculpt_mode_mask_opacity, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_sculpt_curves_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 101 of file overlay_sculpt_curves.cc.
References View3DOverlay::flag, OVERLAY_PrivateData::overlay, OVERLAY_StorageList::pd, populate_edit_overlay(), populate_selection_overlay(), View3DOverlay::sculpt_curves_cage_opacity, OVERLAY_Data::stl, and V3D_OVERLAY_SCULPT_CURVES_CAGE.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_sculpt_curves_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 111 of file overlay_sculpt_curves.cc.
References DRW_draw_pass(), OVERLAY_Data::psl, and OVERLAY_PassList::sculpt_curves_selection_ps.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_sculpt_curves_draw_wires | ( | OVERLAY_Data * | vedata | ) |
Definition at line 118 of file overlay_sculpt_curves.cc.
References DRW_draw_pass(), OVERLAY_Data::psl, and OVERLAY_PassList::sculpt_curves_cage_ps.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_sculpt_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 104 of file overlay_sculpt.cc.
References DefaultFramebufferList::default_fb, DRW_draw_pass(), DRW_state_is_fbo(), DRW_viewport_framebuffer_list_get(), GPU_framebuffer_bind(), OVERLAY_PrivateData::in_front, DefaultFramebufferList::in_front_fb, OVERLAY_PrivateData::painting, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PassList::sculpt_mask_ps, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_sculpt_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 313 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, OVERLAY_StorageList::pd, DRWContextState::scene, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| GPUShader * OVERLAY_shader_antialiasing | ( | ) |
Definition at line 122 of file overlay_shader.cc.
References OVERLAY_Shaders::antialiasing, e_data, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_antialiasing_cache_init().
| GPUShader * OVERLAY_shader_armature_degrees_of_freedom_solid | ( | ) |
Definition at line 288 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_dof_solid, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_armature_degrees_of_freedom_wire | ( | ) |
Definition at line 276 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_dof_wire, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_armature_envelope | ( | bool | use_outline | ) |
Definition at line 246 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_envelope_outline, OVERLAY_Shaders::armature_envelope_solid, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_armature_shape | ( | bool | use_outline | ) |
Definition at line 217 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_shape_outline, OVERLAY_Shaders::armature_shape_solid, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_armature_shape_wire | ( | ) |
Definition at line 234 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_shape_wire, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_armature_sphere | ( | bool | use_outline | ) |
Definition at line 200 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_sphere_outline, OVERLAY_Shaders::armature_sphere_solid, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and OVERLAY_metaball_cache_init().
| GPUShader * OVERLAY_shader_armature_stick | ( | ) |
Definition at line 264 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_stick, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_armature_wire | ( | ) |
Definition at line 300 of file overlay_shader.cc.
References OVERLAY_Shaders::armature_wire, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init().
| GPUShader * OVERLAY_shader_background | ( | ) |
Definition at line 131 of file overlay_shader.cc.
References OVERLAY_Shaders::background, e_data, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_background_cache_init().
| GPUShader * OVERLAY_shader_clipbound | ( | ) |
Definition at line 140 of file overlay_shader.cc.
References OVERLAY_Shaders::clipbound, e_data, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_background_cache_init().
| GPUShader * OVERLAY_shader_depth_only | ( | ) |
Definition at line 149 of file overlay_shader.cc.
References OVERLAY_Shaders::depth_only, DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init(), and OVERLAY_volume_cache_init().
| GPUShader * OVERLAY_shader_edit_curve_handle | ( | ) |
Definition at line 312 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curve_handle, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curve_cache_init(), and OVERLAY_edit_gpencil_legacy_cache_init().
| GPUShader * OVERLAY_shader_edit_curve_point | ( | ) |
Definition at line 324 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curve_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curve_cache_init(), and OVERLAY_edit_gpencil_legacy_cache_init().
| GPUShader * OVERLAY_shader_edit_curve_wire | ( | ) |
Definition at line 348 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curve_wire, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curve_cache_init().
| GPUShader * OVERLAY_shader_edit_curves_handle | ( | ) |
Definition at line 336 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curves_handle, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curves_cache_init().
| GPUShader * OVERLAY_shader_edit_gpencil_guide_point | ( | ) |
Definition at line 360 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_gpencil_guide_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_gpencil_legacy_cache_init().
| GPUShader * OVERLAY_shader_edit_gpencil_point | ( | ) |
Definition at line 372 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_gpencil_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_gpencil_legacy_cache_init().
| GPUShader * OVERLAY_shader_edit_gpencil_wire | ( | ) |
Definition at line 384 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_gpencil_wire, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_gpencil_legacy_cache_init().
| GPUShader * OVERLAY_shader_edit_lattice_point | ( | ) |
Definition at line 396 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_lattice_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_lattice_cache_init().
| GPUShader * OVERLAY_shader_edit_lattice_wire | ( | ) |
Definition at line 408 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_lattice_wire, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_lattice_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_analysis | ( | ) |
Definition at line 456 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_analysis, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_depth | ( | ) |
Definition at line 161 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_depth, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_edge | ( | bool | use_flat_interp | ) |
Definition at line 185 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_edge, OVERLAY_Shaders::edit_mesh_edge_flat, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_face | ( | ) |
Definition at line 420 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_face, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_facedot | ( | ) |
Definition at line 432 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_facedot, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_normal | ( | ) |
Definition at line 444 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_normals, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_skin_root | ( | ) |
Definition at line 468 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_skin_root, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_mesh_vert | ( | ) |
Definition at line 173 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_vert, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init().
| GPUShader * OVERLAY_shader_edit_particle_point | ( | ) |
Definition at line 492 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_particle_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curves_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), and OVERLAY_edit_particle_cache_init().
| GPUShader * OVERLAY_shader_edit_particle_strand | ( | ) |
Definition at line 480 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_particle_strand, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curves_cache_init(), OVERLAY_edit_grease_pencil_cache_init(), and OVERLAY_edit_particle_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_edges_for_edge_select_get | ( | ) |
Definition at line 1074 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_edges_for_edge_select, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_edges_get | ( | ) |
Definition at line 1065 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_edges, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_face_dots_get | ( | ) |
Definition at line 1093 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_face_dots, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_face_get | ( | ) |
Definition at line 1084 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_faces, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_mask_image | ( | ) |
Definition at line 657 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_mask_image, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_stencil_image | ( | ) |
Definition at line 647 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_stencil_image, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_stretching_angle_get | ( | ) |
Definition at line 1123 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_stretching_angle, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_stretching_area_get | ( | ) |
Definition at line 1112 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_stretching_area, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_tiled_image_borders_get | ( | ) |
Definition at line 1134 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_tiled_image_borders, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_edit_uv_verts_get | ( | ) |
Definition at line 1102 of file overlay_shader.cc.
References e_data, OVERLAY_Shaders::edit_uv_verts, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init().
| GPUShader * OVERLAY_shader_extra | ( | bool | is_select | ) |
Definition at line 504 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra, OVERLAY_Shaders::extra_select, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init().
| GPUShader * OVERLAY_shader_extra_grid | ( | ) |
Definition at line 518 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_lightprobe_grid, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init().
| GPUShader * OVERLAY_shader_extra_groundline | ( | ) |
Definition at line 530 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_groundline, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init().
| GPUShader * OVERLAY_shader_extra_loose_point | ( | ) |
Definition at line 571 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_loose_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init().
| GPUShader * OVERLAY_shader_extra_point | ( | ) |
Definition at line 583 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_point, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init().
| GPUShader * OVERLAY_shader_extra_wire | ( | bool | use_object, |
| bool | is_select ) |
Definition at line 542 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_wire, OVERLAY_Shaders::extra_wire_select, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init().
| GPUShader * OVERLAY_shader_facing | ( | ) |
Definition at line 595 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::facing, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_facing_cache_init().
| void OVERLAY_shader_free | ( | ) |
Definition at line 1216 of file overlay_shader.cc.
References ARRAY_SIZE, DRW_SHADER_FREE_SAFE, e_data, g_formats, MEM_SAFE_FREE, and sh_data.
Referenced by OVERLAY_engine_free().
| GPUShader * OVERLAY_shader_gpencil_canvas | ( | ) |
Definition at line 607 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::gpencil_canvas, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_gpencil_legacy_cache_init(), and OVERLAY_grease_pencil_cache_init().
| GPUShader * OVERLAY_shader_grid | ( | ) |
Definition at line 620 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::grid, and sh_data.
Referenced by OVERLAY_grid_cache_init().
| GPUShader * OVERLAY_shader_grid_background | ( | ) |
Definition at line 629 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::grid_background, and sh_data.
Referenced by OVERLAY_grid_cache_init().
| GPUShader * OVERLAY_shader_grid_image | ( | ) |
Definition at line 638 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::grid_image, and sh_data.
Referenced by OVERLAY_grid_cache_init().
| GPUShader * OVERLAY_shader_image | ( | ) |
Definition at line 666 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::image, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_image_camera_cache_populate(), and OVERLAY_image_empty_cache_populate().
| OVERLAY_InstanceFormats * OVERLAY_shader_instance_formats_get | ( | ) |
Definition at line 1148 of file overlay_shader.cc.
References DRW_shgroup_instance_format, g_formats, and OVERLAY_InstanceFormats::pos.
Referenced by custom_bone_instance_shgroup(), OVERLAY_armature_cache_init(), OVERLAY_extra_cache_init(), and OVERLAY_metaball_cache_init().
| GPUShader * OVERLAY_shader_motion_path_line | ( | ) |
Definition at line 678 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::motion_path_line, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_motion_path_cache_init().
| GPUShader * OVERLAY_shader_motion_path_vert | ( | ) |
Definition at line 690 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::motion_path_vert, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_motion_path_cache_init().
| GPUShader * OVERLAY_shader_outline_detect | ( | ) |
Definition at line 756 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_detect, and sh_data.
Referenced by OVERLAY_outline_cache_init().
| GPUShader * OVERLAY_shader_outline_prepass | ( | bool | use_wire | ) |
Definition at line 702 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass, OVERLAY_Shaders::outline_prepass_wire, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init().
| GPUShader * OVERLAY_shader_outline_prepass_curves | ( | ) |
Definition at line 719 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass_curves, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init().
| GPUShader * OVERLAY_shader_outline_prepass_gpencil | ( | ) |
Definition at line 731 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass_gpencil, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init().
| GPUShader * OVERLAY_shader_outline_prepass_pointcloud | ( | ) |
Definition at line 743 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass_pointcloud, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init().
| GPUShader * OVERLAY_shader_paint_face | ( | ) |
Definition at line 765 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_face, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init().
| GPUShader * OVERLAY_shader_paint_point | ( | ) |
Definition at line 777 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_point, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init().
| GPUShader * OVERLAY_shader_paint_texture | ( | ) |
Definition at line 789 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_texture, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init().
| GPUShader * OVERLAY_shader_paint_vertcol | ( | ) |
Definition at line 801 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_vertcol, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init().
| GPUShader * OVERLAY_shader_paint_weight | ( | bool | shading | ) |
Definition at line 813 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_weight, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init().
| GPUShader * OVERLAY_shader_paint_wire | ( | ) |
Definition at line 829 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_wire, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init().
| GPUShader * OVERLAY_shader_particle_dot | ( | ) |
Definition at line 841 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::particle_dot, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_particle_cache_init().
| GPUShader * OVERLAY_shader_particle_shape | ( | ) |
Definition at line 853 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::particle_shape, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_particle_cache_init().
| GPUShader * OVERLAY_shader_sculpt_curves_cage | ( | ) |
Definition at line 889 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::sculpt_curves_cage, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_sculpt_curves_cache_init().
| GPUShader * OVERLAY_shader_sculpt_curves_selection | ( | ) |
Definition at line 877 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::sculpt_curves_selection, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_sculpt_curves_cache_init().
| GPUShader * OVERLAY_shader_sculpt_mask | ( | ) |
Definition at line 865 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), OVERLAY_Shaders::sculpt_mask, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_sculpt_cache_init().
| GPUShader * OVERLAY_shader_uniform_color | ( | ) |
Definition at line 950 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::uniform_color.
Referenced by OVERLAY_armature_cache_init(), OVERLAY_edit_text_cache_init(), OVERLAY_fade_cache_init(), OVERLAY_mode_transfer_cache_populate(), and OVERLAY_viewer_attribute_cache_init().
| GPUShader * OVERLAY_shader_uniform_color_pointcloud | ( | ) |
Definition at line 962 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::uniform_color_pointcloud.
Referenced by OVERLAY_viewer_attribute_cache_init().
| GPUShader * OVERLAY_shader_viewer_attribute_curve | ( | ) |
Definition at line 926 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::viewer_attribute_curve.
Referenced by OVERLAY_viewer_attribute_cache_init().
| GPUShader * OVERLAY_shader_viewer_attribute_curves | ( | ) |
Definition at line 938 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::viewer_attribute_curves.
Referenced by OVERLAY_viewer_attribute_cache_init().
| GPUShader * OVERLAY_shader_viewer_attribute_mesh | ( | ) |
Definition at line 901 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::viewer_attribute_mesh.
Referenced by OVERLAY_viewer_attribute_cache_init().
| GPUShader * OVERLAY_shader_viewer_attribute_pointcloud | ( | ) |
Definition at line 913 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::viewer_attribute_pointcloud.
Referenced by OVERLAY_viewer_attribute_cache_init().
| GPUShader * OVERLAY_shader_volume_gridlines | ( | bool | color_with_flags, |
| bool | color_range ) |
Definition at line 999 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), sh_data, OVERLAY_Shaders::volume_gridlines_flags_sh, OVERLAY_Shaders::volume_gridlines_range_sh, and OVERLAY_Shaders::volume_gridlines_sh.
Referenced by OVERLAY_volume_extra().
| GPUShader * OVERLAY_shader_volume_velocity | ( | bool | use_needle, |
| bool | use_mac ) |
Definition at line 974 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), sh_data, OVERLAY_Shaders::volume_velocity_mac_sh, OVERLAY_Shaders::volume_velocity_needle_sh, and OVERLAY_Shaders::volume_velocity_sh.
Referenced by OVERLAY_volume_extra().
| GPUShader * OVERLAY_shader_wireframe | ( | bool | custom_bias | ) |
Definition at line 1037 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::wireframe.
Referenced by OVERLAY_wireframe_cache_init().
| GPUShader * OVERLAY_shader_wireframe_select | ( | ) |
Definition at line 1025 of file overlay_shader.cc.
References DRW_context_state_get(), e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::wireframe_select.
Referenced by OVERLAY_wireframe_cache_init().
| GPUShader * OVERLAY_shader_xray_fade | ( | ) |
Definition at line 1052 of file overlay_shader.cc.
References e_data, GPU_shader_create_from_info_name(), sh_data, and OVERLAY_Shaders::xray_fade.
Referenced by OVERLAY_antialiasing_cache_init().
| void OVERLAY_speaker_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 827 of file overlay_extra.cc.
References DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), OVERLAY_extra_call_buffer_get(), OVERLAY_ExtraCallBuffers::speaker, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_vertex_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 362 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, OVERLAY_StorageList::pd, DRWContextState::scene, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_viewer_attribute_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 29 of file overlay_viewer_attribute.cc.
References OVERLAY_PassList::attribute_ps, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_shader_uniform_color(), OVERLAY_shader_uniform_color_pointcloud(), OVERLAY_shader_viewer_attribute_curve(), OVERLAY_shader_viewer_attribute_curves(), OVERLAY_shader_viewer_attribute_mesh(), OVERLAY_shader_viewer_attribute_pointcloud(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, OVERLAY_PrivateData::viewer_attribute_curve_grp, OVERLAY_PrivateData::viewer_attribute_curves_grp, OVERLAY_PrivateData::viewer_attribute_instance_grp, OVERLAY_PrivateData::viewer_attribute_instance_pointcloud_grp, OVERLAY_PrivateData::viewer_attribute_mesh_grp, and OVERLAY_PrivateData::viewer_attribute_pointcloud_grp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_viewer_attribute_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | object ) |
Definition at line 189 of file overlay_viewer_attribute.cc.
References attribute_type_supports_viewer_overlay(), DRW_object_get_dupli(), blender::bke::GeometrySet::get_component(), OVERLAY_PrivateData::overlay, OVERLAY_StorageList::pd, populate_cache_for_geometry(), populate_cache_for_instance(), DupliObject::preview_base_geometry, DupliObject::preview_instance_index, OVERLAY_Data::stl, and View3DOverlay::viewer_attribute_opacity.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_viewer_attribute_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 210 of file overlay_viewer_attribute.cc.
References OVERLAY_PassList::attribute_ps, DRW_draw_pass(), and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_viewer_attribute_text | ( | const Object & | object | ) |
Definition at line 121 of file overlay_viewer_text.cc.
References Geometry::attributes, DRW_object_get_dupli(), Curves::geometry, blender::bke::GeometrySet::get_instances(), OB_CURVES, OB_CURVES_LEGACY, OB_MESH, OB_POINTCLOUD, DupliObject::preview_base_geometry, and DupliObject::preview_instance_index.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_volume_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_volume.cc.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_STATE_DEPTH_LESS_EQUAL, DRW_state_is_select(), DRW_STATE_WRITE_DEPTH, OVERLAY_shader_depth_only(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, OVERLAY_PassList::volume_ps, and OVERLAY_PrivateData::volume_selection_surface_grp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_volume_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 35 of file overlay_volume.cc.
References DRW_shgroup_call, DRW_state_is_select(), OVERLAY_StorageList::pd, OVERLAY_Data::stl, and OVERLAY_PrivateData::volume_selection_surface_grp.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_volume_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 49 of file overlay_volume.cc.
References DRW_draw_pass(), OVERLAY_Data::psl, and OVERLAY_PassList::volume_ps.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_weight_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 337 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, OVERLAY_StorageList::pd, DRWContextState::scene, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_wireframe_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 45 of file overlay_wireframe.cc.
References blender::math::abs(), OVERLAY_PrivateData::antialiasing, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_texture_ref(), DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_FIRST_VERTEX_CONVENTION, DRW_state_is_depth(), DRW_state_is_fbo(), DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_TextureList::dummy_depth_tx, OVERLAY_PrivateData::enabled, G, G_draw, G_TRANSFORM_OBJ, blender::math::interpolate(), OB_SOLID, OVERLAY_PrivateData::overlay, OVERLAY_shader_wireframe(), OVERLAY_shader_wireframe_select(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, View3D::shading, OVERLAY_PrivateData::shdata, blender::math::sqrt(), state, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, OVERLAY_Data::txl, DRWContextState::v3d, OVERLAY_ShadingData::wire_opacity, OVERLAY_ShadingData::wire_step_param, View3DOverlay::wireframe_opacity, OVERLAY_PassList::wireframe_ps, View3DOverlay::wireframe_threshold, OVERLAY_PassList::wireframe_xray_ps, OVERLAY_PrivateData::wires_all_grp, OVERLAY_PrivateData::wires_grp, OVERLAY_PrivateData::wires_hair_grp, OVERLAY_PrivateData::wires_sculpt_grp, OVERLAY_PrivateData::xray_enabled, and OVERLAY_PrivateData::xray_opacity.
Referenced by OVERLAY_cache_init().
| void OVERLAY_wireframe_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob, | ||
| OVERLAY_DupliData * | dupli, | ||
| bool | init_dupli ) |
Definition at line 164 of file overlay_wireframe.cc.
References Object::base_flag, OVERLAY_DupliData::base_flag, BASE_FROM_DUPLI, BKE_object_get_editmesh_eval_cage(), BKE_object_get_editmesh_eval_final(), BKE_sculptsession_use_pbvh_draw(), BLI_assert, color, Object::data, Volume::display, DRW_cache_curve_edge_wire_get(), DRW_cache_mesh_all_verts_get(), DRW_cache_mesh_loose_edges_get(), DRW_cache_object_face_wireframe_get(), DRW_cache_surf_edge_wire_get(), DRW_cache_text_edge_wire_get(), DRW_context_state_get(), DRW_object_get_dupli_parent(), DRW_object_is_in_edit_mode(), DRW_object_is_visible_psys_in_active_context(), DRW_object_wire_theme_get(), DRW_shgroup_call, DRW_shgroup_call_no_cull, DRW_shgroup_call_sculpt(), DRW_state_is_image_render(), Object::dt, Object::dtx, Mesh::edges_num, ELEM, OVERLAY_ExtraCallBuffers::extra_loose_points, OVERLAY_ExtraCallBuffers::extra_wire, ListBase::first, View3DOverlay::flag, is_mesh(), Object::mode, OB_CURVES_LEGACY, OB_DRAW_ALL_EDGES, OB_DRAW_IN_FRONT, OB_DRAWWIRE, OB_FONT, OB_GPENCIL_LEGACY, OB_GREASE_PENCIL, OB_MESH, OB_MODE_SCULPT, OB_POINTCLOUD, OB_SURF, OB_VOLUME, OB_WIRE, OVERLAY_PrivateData::overlay, OVERLAY_extra_call_buffer_get(), OVERLAY_extra_loose_points(), OVERLAY_extra_wire(), PART_DRAW_PATH, PART_DRAW_REND, Object::particlesystem, OVERLAY_StorageList::pd, ParticleSettings::ren_as, DRWContextState::rv3d, DRWContextState::scene, Object::sculpt, OVERLAY_Data::stl, Object::type, V3D_OVERLAY_WIREFRAMES, DRWContextState::view_layer, VOLUME_WIREFRAME_POINTS, OVERLAY_DupliData::wire_geom, OVERLAY_DupliData::wire_shgrp, wireframe_hair_cache_populate(), OVERLAY_PrivateData::wireframe_mode, VolumeDisplay::wireframe_type, OVERLAY_PrivateData::wires_all_grp, OVERLAY_PrivateData::wires_grp, and OVERLAY_PrivateData::wires_sculpt_grp.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_wireframe_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 350 of file overlay_wireframe.cc.
References DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PrivateData::view_wires, and OVERLAY_PassList::wireframe_ps.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_wireframe_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 361 of file overlay_wireframe.cc.
References DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PrivateData::view_wires, and OVERLAY_PassList::wireframe_xray_ps.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_wireframe_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 37 of file overlay_wireframe.cc.
References DRW_context_state_get(), DRW_view_create_with_zoffset(), DRW_view_default_get(), OVERLAY_StorageList::pd, DRWContextState::rv3d, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_wires.
Referenced by OVERLAY_engine_init().
| void OVERLAY_xray_depth_copy | ( | OVERLAY_Data * | vedata | ) |
Definition at line 205 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, DefaultTextureList::depth, OVERLAY_PrivateData::do_depth_copy, DRW_state_is_fbo(), DRW_viewport_texture_list_get(), OVERLAY_Data::fbl, GPU_framebuffer_bind(), GPU_framebuffer_clear_depth(), GPU_texture_copy(), OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_StorageList::pd, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, OVERLAY_Data::txl, and OVERLAY_PrivateData::xray_enabled.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_xray_depth_infront_copy | ( | OVERLAY_Data * | vedata | ) |
Definition at line 224 of file overlay_antialiasing.cc.
References OVERLAY_PrivateData::antialiasing, DefaultTextureList::depth_in_front, OVERLAY_PrivateData::do_depth_infront_copy, DRW_state_is_fbo(), DRW_viewport_texture_list_get(), GPU_texture_copy(), OVERLAY_StorageList::pd, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, and OVERLAY_Data::txl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_xray_fade_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 236 of file overlay_antialiasing.cc.
References DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, OVERLAY_PrivateData::xray_enabled, OVERLAY_PassList::xray_fade_ps, and OVERLAY_PrivateData::xray_opacity.
Referenced by OVERLAY_draw_scene().
| BLI_INLINE void pack_data_in_mat4 | ( | float | rmat[4][4], |
| const float | mat[4][4], | ||
| float | a, | ||
| float | b, | ||
| float | c, | ||
| float | d ) |
Definition at line 553 of file overlay_private.hh.
References b, and copy_m4_m4().
Referenced by pack_v4_in_mat4().
| BLI_INLINE void pack_fl_in_mat4 | ( | float | rmat[4][4], |
| const float | mat[4][4], | ||
| float | a ) |
Definition at line 568 of file overlay_private.hh.
References copy_m4_m4().
Referenced by OVERLAY_empty_shape().
| BLI_INLINE void pack_v4_in_mat4 | ( | float | rmat[4][4], |
| const float | mat[4][4], | ||
| const float | v[4] ) |
Definition at line 563 of file overlay_private.hh.
References pack_data_in_mat4(), and v.
Referenced by OVERLAY_extra_loose_points(), and OVERLAY_extra_wire().