Blender
V3.3
|
#include "DRW_render.h"
#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_Instance |
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 |
Typedefs | |
typedef struct OVERLAY_FramebufferList | OVERLAY_FramebufferList |
typedef struct OVERLAY_TextureList | OVERLAY_TextureList |
typedef enum OVERLAY_UVLineStyle | OVERLAY_UVLineStyle |
typedef struct OVERLAY_PassList | OVERLAY_PassList |
typedef struct OVERLAY_ShadingData | OVERLAY_ShadingData |
typedef struct OVERLAY_ExtraCallBuffers | OVERLAY_ExtraCallBuffers |
typedef struct OVERLAY_ArmatureCallBuffersInner | OVERLAY_ArmatureCallBuffersInner |
typedef struct OVERLAY_ArmatureCallBuffers | OVERLAY_ArmatureCallBuffers |
typedef struct OVERLAY_PrivateData | OVERLAY_PrivateData |
typedef struct OVERLAY_StorageList | OVERLAY_StorageList |
typedef struct OVERLAY_Instance | OVERLAY_Instance |
typedef struct OVERLAY_Data | OVERLAY_Data |
typedef struct OVERLAY_DupliData | OVERLAY_DupliData |
typedef struct BoneInstanceData | BoneInstanceData |
typedef struct OVERLAY_InstanceFormats | OVERLAY_InstanceFormats |
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 49 of file overlay_private.h.
#define NOT_IN_FRONT 0 |
Definition at line 48 of file overlay_private.h.
#define USE_GEOM_SHADER_WORKAROUND 0 |
Definition at line 21 of file overlay_private.h.
typedef struct BoneInstanceData BoneInstanceData |
typedef struct OVERLAY_ArmatureCallBuffers OVERLAY_ArmatureCallBuffers |
typedef struct OVERLAY_ArmatureCallBuffersInner OVERLAY_ArmatureCallBuffersInner |
typedef struct OVERLAY_Data OVERLAY_Data |
typedef struct OVERLAY_DupliData OVERLAY_DupliData |
typedef struct OVERLAY_ExtraCallBuffers OVERLAY_ExtraCallBuffers |
typedef struct OVERLAY_FramebufferList OVERLAY_FramebufferList |
typedef struct OVERLAY_Instance OVERLAY_Instance |
typedef struct OVERLAY_InstanceFormats OVERLAY_InstanceFormats |
typedef struct OVERLAY_PassList OVERLAY_PassList |
typedef struct OVERLAY_PrivateData OVERLAY_PrivateData |
typedef struct OVERLAY_ShadingData OVERLAY_ShadingData |
typedef struct OVERLAY_StorageList OVERLAY_StorageList |
typedef struct OVERLAY_TextureList OVERLAY_TextureList |
typedef enum OVERLAY_UVLineStyle OVERLAY_UVLineStyle |
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 51 of file overlay_private.h.
void OVERLAY_antialiasing_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 142 of file overlay_antialiasing.c.
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, NULL, 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 103 of file overlay_antialiasing.c.
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, NULL, OVERLAY_TextureList::overlay_color_tx, OVERLAY_TextureList::overlay_line_tx, OVERLAY_shader_antialiasing(), OVERLAY_shader_xray_fade(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, 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 245 of file overlay_antialiasing.c.
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 48 of file overlay_antialiasing.c.
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_RGBA8, GPU_SRGB8_A8, NULL, 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 184 of file overlay_antialiasing.c.
References OVERLAY_PrivateData::antialiasing, OVERLAY_PrivateData::clear_in_front, DRW_state_is_fbo(), OVERLAY_PrivateData::enabled, OVERLAY_Data::fbl, GPU_framebuffer_bind(), 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 2582 of file overlay_armature.c.
References OVERLAY_PrivateData::armature_call_buffers, BLI_ghash_free(), OVERLAY_ArmatureCallBuffersInner::custom_shapes_ghash, NULL, 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 112 of file overlay_armature.c.
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, 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_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, OVERLAY_ArmatureCallBuffersInner::envelope_distance, OVERLAY_ArmatureCallBuffersInner::envelope_fill, OVERLAY_ArmatureCallBuffersInner::envelope_outline, View3DOverlay::flag, View3D::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, NULL, 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, pow(), OVERLAY_Data::psl, sh, View3D::shading, OVERLAY_PrivateData::show_relations, OVERLAY_ArmatureCallBuffers::solid, state, OVERLAY_ArmatureCallBuffersInner::stick, OVERLAY_Data::stl, OVERLAY_ArmatureCallBuffers::transp, OVERLAY_PrivateData::transparent, View3DShading::type, 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 2533 of file overlay_armature.c.
References armature_context_setup(), color, 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 2595 of file overlay_armature.c.
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 2603 of file overlay_armature.c.
References OVERLAY_PassList::armature_bone_select_ps, OVERLAY_PassList::armature_ps, OVERLAY_PassList::armature_transp_ps, DRW_draw_pass(), DRW_state_is_select(), NULL, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
bool OVERLAY_armature_is_pose_mode | ( | Object * | ob, |
const struct DRWContextState * | draw_ctx | ||
) |
Return true if armature should be handled by the pose mode engine.
void OVERLAY_background_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 15 of file overlay_background.c.
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_opengl_render(), DRW_STATE_WRITE_COLOR, DRW_viewport_texture_list_get(), G_draw, GPUBatch, World::horr, NULL, OB_SOLID, OVERLAY_shader_background(), OVERLAY_shader_clipbound(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::rv3d, scene, DRWContextState::scene, sh, 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, BoundBox::vec, and Scene::world.
Referenced by OVERLAY_cache_init().
void OVERLAY_background_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 103 of file overlay_background.c.
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 426 of file overlay_armature.c.
References data, and encode_2f_to_float().
Referenced by drw_shgroup_bone_box(), drw_shgroup_bone_custom_mesh_wire(), drw_shgroup_bone_custom_solid_mesh(), drw_shgroup_bone_envelope(), drw_shgroup_bone_octahedral(), drw_shgroup_bone_point(), drw_shgroup_custom_bone_curve(), and metaball_instance_data_set().
void OVERLAY_bone_instance_data_set_color_hint | ( | BoneInstanceData * | data, |
const float | hint_color[4] | ||
) |
Definition at line 419 of file overlay_armature.c.
References data, and encode_2f_to_float().
Referenced by drw_shgroup_bone_box(), drw_shgroup_bone_custom_mesh_wire(), drw_shgroup_bone_custom_solid_mesh(), drw_shgroup_bone_envelope(), drw_shgroup_bone_octahedral(), drw_shgroup_bone_point(), and drw_shgroup_custom_bone_curve().
void OVERLAY_camera_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 1104 of file overlay_extra.c.
References Camera::bg_images, BKE_camera_multiview_model_matrix(), BKE_camera_object_dof_distance(), BKE_camera_view_frame_ex(), BLI_listbase_is_empty(), CAM_SHOW_BG_IMAGE, CAM_SHOWLIMITS, CAM_SHOWMIST, View3D::camera, OVERLAY_ExtraCallBuffers::camera_distances, OVERLAY_ExtraCallBuffers::camera_frame, camera_offaxis_shiftx_get(), camera_stereoscopy_extra(), OVERLAY_ExtraCallBuffers::camera_tria, camera_view3d_reconstruction(), center, OVERLAY_CameraInstanceData::center_x, OVERLAY_CameraInstanceData::center_y, OVERLAY_CameraInstanceData::clip_end, Camera::clip_end, OVERLAY_CameraInstanceData::clip_sta, Camera::clip_start, OVERLAY_CameraInstanceData::color, copy_v3_fl(), copy_v3_fl3(), copy_v3_v3(), copy_v4_v4(), OVERLAY_CameraInstanceData::corner_x, OVERLAY_CameraInstanceData::corner_y, Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, OVERLAY_CameraInstanceData::depth, OVERLAY_CameraInstanceData::dist_color_id, Camera::drawsize, DRW_buffer_add_entry_struct(), DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_image_render(), DRW_state_is_select(), ELEM, fabsf, Camera::flag, View3D::flag2, OVERLAY_CameraInstanceData::focus, invert_v3(), len_v3(), OVERLAY_CameraInstanceData::mat, mid_v2_v2v2(), OVERLAY_CameraInstanceData::mist_end, OVERLAY_CameraInstanceData::mist_sta, World::mistdist, World::miststa, mul_v2_fl(), mul_v3_fl(), mul_v3_v3(), View3D::multiview_eye, normalize_m4_m4(), Object::obmat, OVERLAY_extra_call_buffer_get(), OVERLAY_image_camera_cache_populate(), RegionView3D::persp, Scene::r, R_MULTIVIEW, DRWContextState::rv3d, RV3D_CAMOB, SCE_VIEWS_FORMAT_STEREO_3D, RenderData::scemode, scene, DRWContextState::scene, View3D::stereo3d_flag, STEREO_LEFT_NAME, STEREO_RIGHT_ID, STEREO_RIGHT_NAME, sub_v2_v2v2(), DRWContextState::v3d, V3D_SHOW_RECONSTRUCTION, DRWContextState::view_layer, RenderData::views_format, world, and Scene::world.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_armature_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 2517 of file overlay_armature.c.
References armature_context_setup(), draw_armature_edit(), NULL, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_curve_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 14 of file overlay_edit_curve.c.
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, sh, 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 62 of file overlay_edit_curve.c.
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, GPUBatch, 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 108 of file overlay_edit_curve.c.
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 28 of file overlay_edit_curves.cc.
References View3DOverlay::backwire_opacity, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DefaultTextureList::depth, OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_texture_ref(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, OVERLAY_PrivateData::edit_curves, OVERLAY_PrivateData::edit_curves_points_grp, OVERLAY_PassList::edit_curves_points_ps, G_draw, View3D::overlay, OVERLAY_shader_edit_curve_point(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, OVERLAY_Data::stl, OVERLAY_Data::txl, and DRWContextState::v3d.
Referenced by OVERLAY_cache_init().
void OVERLAY_edit_curves_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 67 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 79 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_zbufclip, DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PrivateData::edit_curves, OVERLAY_PassList::edit_curves_points_ps, IN_FRONT, NOT_IN_FRONT, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_edit_curves_points.
Referenced by OVERLAY_draw_scene().
void OVERLAY_edit_curves_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_view_default_get(), OVERLAY_PrivateData::edit_curves, OVERLAY_StorageList::pd, OVERLAY_Data::stl, DRWContextState::v3d, OVERLAY_PrivateData::view_edit_curves_points, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_engine_init().
void OVERLAY_edit_gpencil_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 25 of file overlay_gpencil.c.
References DRW_Global::block, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, bGPDcontrolpoint::color, color, bGPdata_Runtime::cp_points, Scene::cursor, 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, 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, GPENCIL_VERTEX_MODE, GPENCIL_WEIGHT_MODE, OVERLAY_PrivateData::handle_display, if(), View3DCursor::location, NULL, OB_GPENCIL, OB_MODE_PAINT_GPENCIL, 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, bGPdata::runtime, scene, DRWContextState::scene, sh, OVERLAY_PrivateData::show_handles, bGPDcontrolpoint::size, GlobalsUboStorage::size_pixel, state, OVERLAY_Data::stl, TH_GIZMO_PRIMARY, TH_GIZMO_SECONDARY, TH_REDALERT, Scene::toolsettings, bGPdata_Runtime::tot_cp_points, Object::type, UI_GetThemeColor4fv(), 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_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 455 of file overlay_gpencil.c.
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_lattice_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 12 of file overlay_lattice.c.
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, sh, 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 34 of file overlay_lattice.c.
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, GPUBatch, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_lattice_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 58 of file overlay_lattice.c.
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 42 of file overlay_edit_mesh.c.
References View3DOverlay::backwire_opacity, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, OVERLAY_ShadingData::data_mask, DefaultTextureList::depth, OVERLAY_PrivateData::do_edges, 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, OVERLAY_PrivateData::flag, View3DShading::flag, G_draw, mask(), View3DOverlay::normals_constant_screen_size, View3DOverlay::normals_length, NULL, OB_SOLID, View3D::overlay, OVERLAY_shader_depth_only(), OVERLAY_shader_edit_mesh_analysis(), 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, 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, sh, View3D::shading, OVERLAY_PrivateData::shdata, state, OVERLAY_Data::stl, Scene::toolsettings, OVERLAY_Data::txl, View3DShading::type, 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_EDGES, V3D_OVERLAY_EDIT_FACE_DOT, V3D_OVERLAY_EDIT_FACES, V3D_OVERLAY_EDIT_FREESTYLE_EDGE, V3D_OVERLAY_EDIT_FREESTYLE_FACE, V3D_OVERLAY_EDIT_OCCLUDE_WIRE, V3D_OVERLAY_EDIT_SEAMS, V3D_OVERLAY_EDIT_SHARP, V3D_SHADING_XRAY, VFLAG_EDGE_FREESTYLE, VFLAG_EDGE_SEAM, VFLAG_EDGE_SHARP, VFLAG_FACE_FREESTYLE, VFLAG_FACE_SELECTED, and DRW_Global::weight_ramp.
Referenced by OVERLAY_cache_init().
void OVERLAY_edit_mesh_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 259 of file overlay_edit_mesh.c.
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_mesh_batch_cache_get_edit_facedots(), DRW_mesh_batch_cache_get_edit_lnors(), DRW_mesh_batch_cache_get_edit_vnors(), 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, GPUBatch, NULL, 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_OCCLUDE_WIRE, 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 330 of file overlay_edit_mesh.c.
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(), IN_FRONT, NOT_IN_FRONT, NULL, 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 27 of file overlay_edit_mesh.c.
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 55 of file overlay_metaball.c.
References atanf, DRW_Global::block, color, GlobalsUboStorage::color_mball_radius, GlobalsUboStorage::color_mball_radius_select, GlobalsUboStorage::color_mball_stiffness, GlobalsUboStorage::color_mball_stiffness_select, Object::data, DRW_buffer_add_entry_struct(), DRW_select_load_id(), DRW_state_is_select(), Object::dtx, MetaBall::editelems, float(), G_draw, OVERLAY_PrivateData::handle, LISTBASE_FOREACH, M_PI_2, MB_SCALE_RAD, OVERLAY_PrivateData::mball, MBALLSEL_RADIUS, MBALLSEL_STIFF, metaball_instance_data_set(), OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, Object::runtime, SELECT, Object_Runtime::select_id, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_particle_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 24 of file overlay_particle.c.
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, sh, 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 50 of file overlay_particle.c.
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, GPUBatch, Scene::id, LISTBASE_FOREACH, ParticleSystem::next, NULL, Object::particlesystem, OVERLAY_StorageList::pd, PE_create_current(), PE_get_current_from_psys(), 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 105 of file overlay_particle.c.
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 92 of file overlay_edit_curve.c.
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, GPUBatch, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_text_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_edit_text.c.
References DRW_Global::block, OVERLAY_PrivateData::clipping_state, GlobalsUboStorage::color_wire, 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_BLEND_MUL, 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_PassList::edit_text_darken_ps, OVERLAY_PrivateData::edit_text_overlay_grp, OVERLAY_PassList::edit_text_overlay_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_PrivateData::overlay_color, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::rv3d, sh, 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 165 of file overlay_edit_text.c.
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, GPUBatch, 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 181 of file overlay_edit_text.c.
References copy_v4_fl4(), DRW_draw_pass(), DRW_state_is_fbo(), DRW_view_set_active(), OVERLAY_PrivateData::edit_text, OVERLAY_PassList::edit_text_darken_ps, OVERLAY_PassList::edit_text_overlay_ps, OVERLAY_PassList::edit_text_wire_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_PrivateData::overlay_color, OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_edit_text.
Referenced by OVERLAY_draw_scene().
void OVERLAY_edit_uv_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 517 of file overlay_edit_uv.c.
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 175 of file overlay_edit_uv.c.
References BrushClone::alpha, BKE_image_acquire_ibuf(), 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, color, 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_mesh_batch_cache_validate(), 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, GPUBatch, if(), image(), BrushClone::image, SpaceImage::image, OVERLAY_PrivateData::image_aspect, OVERLAY_PrivateData::image_size, OVERLAY_PrivateData::line_style, LISTBASE_FOREACH, M_SQRT2, OVERLAY_PrivateData::mask, MASK_OVERLAY_COMBINED, OVERLAY_PrivateData::mask_overlay_mode, OVERLAY_PrivateData::mask_texture, MEM_freeN, NULL, 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, OVERLAY_StorageList::pd, OVERLAY_Data::psl, scene, DRWContextState::scene, sh, SI_UVDT_STRETCH_ANGLE, DRWContextState::space_data, srgb_to_linearrgb_v4(), state, OVERLAY_PrivateData::stencil_ibuf, OVERLAY_PrivateData::stencil_image, OVERLAY_PrivateData::stencil_lock, OVERLAY_Data::stl, TH_BACK, TH_FACE_SELECT, TH_FACEDOT_SIZE, TH_VERTEX, TH_VERTEX_SIZE, tile, ImageTile::tile_number, Scene::toolsettings, OVERLAY_PrivateData::total_area_ratio, Object::type, UI_GetThemeColor4fv(), UI_GetThemeColorShade4fv(), UI_GetThemeColorShade4ubv(), UI_GetThemeValuef(), unit_m4(), OVERLAY_PrivateData::uv_aspect, OVERLAY_PrivateData::uv_opacity, UV_SELECT_EDGE, UV_SYNC_SELECTION, DRWContextState::view_layer, ImBuf::x, and ImBuf::y.
Referenced by OVERLAY_cache_init().
void OVERLAY_edit_uv_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 542 of file overlay_edit_uv.c.
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, NULL, 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 92 of file overlay_edit_uv.c.
References BKE_paint_brush(), BLI_listbase_clear(), 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, image(), SpaceImage::image, OVERLAY_PrivateData::image_aspect, OVERLAY_PrivateData::image_size, OVERLAY_PrivateData::line_style, OVERLAY_PrivateData::mask, MaskSpaceInfo::mask, MASK_DRAWFLAG_OVERLAY, SpaceImage::mask_info, OVERLAY_PrivateData::mask_overlay_mode, SpaceImage::mode, NULL, OB_MODE_EDIT, OB_MODE_TEXTURE_PAINT, DRWContextState::object_edit, DRWContextState::object_mode, MaskSpaceInfo::overlay_mode, PAINT_TOOL_CLONE, OVERLAY_StorageList::pd, SCE_SELECT_FACE, scene, DRWContextState::scene, 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, Scene::toolsettings, OVERLAY_PrivateData::total_area_ratio, OVERLAY_PrivateData::totals, UI_DPI_FAC, USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE, OVERLAY_PrivateData::uv_aspect, OVERLAY_PrivateData::uv_opacity, SpaceImage::uv_opacity, UV_SELECT_EDGE, UV_SELECT_FACE, and UV_SYNC_SELECTION.
Referenced by OVERLAY_engine_init().
void OVERLAY_empty_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 313 of file overlay_extra.c.
References Object::base_flag, BASE_FROM_DUPLI, color, DRW_context_state_get(), DRW_object_wire_theme_get(), Object::empty_drawsize, Object::empty_drawtype, Object::instance_collection, OB_ARROWS, OB_CIRCLE, OB_CUBE, OB_DUPLICOLLECTION, OB_EMPTY_CONE, OB_EMPTY_IMAGE, OB_EMPTY_SPHERE, OB_PLAINAXES, OB_SINGLE_ARROW, Object::obmat, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), OVERLAY_image_empty_cache_populate(), Object::transflag, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_empty_shape | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | mat[4][4], | ||
float | draw_size, | ||
char | draw_type, | ||
const float | color[4] | ||
) |
Definition at line 275 of file overlay_extra.c.
References color, DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_axes, OVERLAY_ExtraCallBuffers::empty_circle, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_image_frame, OVERLAY_ExtraCallBuffers::empty_plain_axes, OVERLAY_ExtraCallBuffers::empty_single_arrow, OVERLAY_ExtraCallBuffers::empty_sphere, OB_ARROWS, OB_CIRCLE, OB_CUBE, OB_EMPTY_CONE, OB_EMPTY_IMAGE, OB_EMPTY_SPHERE, OB_PLAINAXES, OB_SINGLE_ARROW, and pack_fl_in_mat4().
Referenced by camera_view3d_reconstruction(), drw_shgroup_bone_axes(), drw_shgroup_bone_custom_empty(), OVERLAY_empty_cache_populate(), OVERLAY_image_empty_cache_populate(), and OVERLAY_lightprobe_cache_populate().
void OVERLAY_extra_blend_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1611 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_blend_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 47 of file overlay_extra.c.
References DRW_Global::block, DRW_Global::block_ubo, BUF_INSTANCE, BUF_LINE, BUF_POINT, OVERLAY_ExtraCallBuffers::camera_distances, OVERLAY_ExtraCallBuffers::camera_frame, OVERLAY_ExtraCallBuffers::camera_tria, OVERLAY_ExtraCallBuffers::camera_volume, OVERLAY_ExtraCallBuffers::camera_volume_frame, OVERLAY_ExtraCallBuffers::center_active, OVERLAY_ExtraCallBuffers::center_deselected, OVERLAY_ExtraCallBuffers::center_deselected_lib, OVERLAY_ExtraCallBuffers::center_selected, OVERLAY_ExtraCallBuffers::center_selected_lib, OVERLAY_PrivateData::clipping_state, GlobalsUboStorage::color_active, GlobalsUboStorage::color_deselect, GlobalsUboStorage::color_library, GlobalsUboStorage::color_library_select, GlobalsUboStorage::color_select, DefaultTextureList::depth, DRW_cache_bone_arrows_get(), DRW_cache_camera_distances_get(), DRW_cache_camera_frame_get(), DRW_cache_camera_tria_get(), DRW_cache_camera_tria_wire_get(), DRW_cache_camera_volume_get(), DRW_cache_camera_volume_wire_get(), DRW_cache_circle_get(), DRW_cache_empty_capsule_body_get(), DRW_cache_empty_capsule_cap_get(), DRW_cache_empty_cone_get(), DRW_cache_empty_cube_get(), DRW_cache_empty_cylinder_get(), DRW_cache_empty_sphere_get(), DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_vortex_get(), DRW_cache_field_wind_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_light_spot_volume_get(), DRW_cache_light_sun_lines_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), DRW_cache_lightprobe_planar_get(), DRW_cache_plain_axes_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_cache_single_arrow_get(), DRW_cache_speaker_get(), DRW_cache_sphere_get(), DRW_LOD_LOW, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_create_sub(), DRW_shgroup_state_disable(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_CULL_BACK, DRW_STATE_CULL_FRONT, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_fbo(), DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, OVERLAY_ExtraCallBuffers::empty_axes, OVERLAY_ExtraCallBuffers::empty_capsule_body, OVERLAY_ExtraCallBuffers::empty_capsule_cap, OVERLAY_ExtraCallBuffers::empty_circle, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_cylinder, OVERLAY_ExtraCallBuffers::empty_image_frame, OVERLAY_ExtraCallBuffers::empty_plain_axes, OVERLAY_ExtraCallBuffers::empty_single_arrow, OVERLAY_ExtraCallBuffers::empty_sphere, OVERLAY_ExtraCallBuffers::empty_sphere_solid, OVERLAY_PassList::extra_blend_ps, OVERLAY_PrivateData::extra_call_buffers, OVERLAY_PassList::extra_centers_ps, OVERLAY_ExtraCallBuffers::extra_dashed_lines, OVERLAY_PrivateData::extra_grid_grp, OVERLAY_PassList::extra_grid_ps, OVERLAY_ExtraCallBuffers::extra_lines, OVERLAY_ExtraCallBuffers::extra_loose_points, OVERLAY_ExtraCallBuffers::extra_points, OVERLAY_PassList::extra_ps, OVERLAY_ExtraCallBuffers::extra_wire, OVERLAY_ExtraCallBuffers::field_cone_limit, OVERLAY_ExtraCallBuffers::field_curve, OVERLAY_ExtraCallBuffers::field_force, OVERLAY_ExtraCallBuffers::field_sphere_limit, OVERLAY_ExtraCallBuffers::field_tube_limit, OVERLAY_ExtraCallBuffers::field_vortex, OVERLAY_ExtraCallBuffers::field_wind, G, G_draw, G_TRANSFORM_OBJ, OVERLAY_ExtraCallBuffers::groundline, OVERLAY_InstanceFormats::instance_extra, OVERLAY_InstanceFormats::instance_pos, OVERLAY_ExtraCallBuffers::light_area, OVERLAY_ExtraCallBuffers::light_point, OVERLAY_ExtraCallBuffers::light_spot, OVERLAY_ExtraCallBuffers::light_spot_cone_back, OVERLAY_ExtraCallBuffers::light_spot_cone_front, OVERLAY_ExtraCallBuffers::light_sun, OVERLAY_ExtraCallBuffers::origin_xform, OVERLAY_shader_extra(), OVERLAY_shader_extra_grid(), OVERLAY_shader_extra_groundline(), OVERLAY_shader_extra_loose_point(), OVERLAY_shader_extra_point(), OVERLAY_shader_extra_wire(), OVERLAY_shader_instance_formats_get(), OVERLAY_StorageList::pd, OVERLAY_InstanceFormats::point_extra, OVERLAY_InstanceFormats::pos, OVERLAY_InstanceFormats::pos_color, OVERLAY_ExtraCallBuffers::probe_cube, OVERLAY_ExtraCallBuffers::probe_grid, OVERLAY_ExtraCallBuffers::probe_planar, OVERLAY_Data::psl, sh, OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_ExtraCallBuffers::speaker, state, OVERLAY_Data::stl, tex, OVERLAY_Data::txl, and OVERLAY_InstanceFormats::wire_extra.
Referenced by OVERLAY_cache_init().
void OVERLAY_extra_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 1534 of file overlay_extra.c.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, BASE_SELECTED, BKE_modifier_is_enabled(), BKE_modifiers_findby_type(), Object::boundtype, RenderData::cfra, color, DRWContextState::depsgraph, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), DRW_state_show_text(), Object::dt, Object::dtx, ELEM, eModifierMode_Realtime, eModifierType_Fluid, OVERLAY_ExtraCallBuffers::empty_axes, View3DOverlay::flag, PartDeflect::forcefield, NULL, OB_ARMATURE, OB_AXIS, OB_BOUNDBOX, OB_CAMERA, OB_DRAWBOUNDOX, OB_DRAWNAME, OB_EMPTY, OB_GPENCIL, OB_LAMP, OB_LATTICE, OB_LIGHTPROBE, OB_MODE_ALL_PAINT, OB_MODE_ALL_PAINT_GPENCIL, OB_MODE_OBJECT, OB_SPEAKER, OB_TEXSPACE, DRWContextState::object_mode, Object::obmat, OVERLAY_ExtraCallBuffers::origin_xform, OVERLAY_PrivateData::overlay, OVERLAY_bounds(), OVERLAY_collision(), OVERLAY_extra_call_buffer_get(), OVERLAY_forcefield(), OVERLAY_object_center(), OVERLAY_object_name(), OVERLAY_relationship_lines(), OVERLAY_texture_space(), OVERLAY_volume_extra(), OVERLAY_StorageList::pd, Object::pd, Scene::r, Object::rigidbody_object, SCE_XFORM_DATA_ORIGIN, scene, DRWContextState::scene, OVERLAY_Data::stl, Scene::toolsettings, ToolSettings::transform_flag, Object::type, OVERLAY_PrivateData::v3d_flag, V3D_HIDE_HELPLINES, V3D_OVERLAY_HIDE_OBJECT_ORIGINS, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
OVERLAY_ExtraCallBuffers* OVERLAY_extra_call_buffer_get | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 243 of file overlay_extra.c.
References Object::dtx, OVERLAY_PrivateData::extra_call_buffers, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by edit_text_cache_populate_boxes(), OVERLAY_camera_cache_populate(), OVERLAY_empty_cache_populate(), OVERLAY_extra_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_lattice_cache_populate(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_speaker_cache_populate(), and OVERLAY_wireframe_cache_populate().
void OVERLAY_extra_centers_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1626 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_centers_ps, OVERLAY_PassList::extra_grid_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1616 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1621 of file overlay_extra.c.
References DRW_draw_pass(), OVERLAY_PassList::extra_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_extra_line | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | start[3], | ||
const float | end[3], | ||
int | color_id | ||
) |
Definition at line 234 of file overlay_extra.c.
References DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_lines.
Referenced by camera_view3d_reconstruction().
void OVERLAY_extra_line_dashed | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | start[3], | ||
const float | end[3], | ||
const float | color[4] | ||
) |
Definition at line 225 of file overlay_extra.c.
References color, DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_dashed_lines.
Referenced by camera_stereoscopy_extra(), drw_shgroup_bone_relationship_lines_ex(), edit_text_cache_populate_boxes(), and OVERLAY_relationship_lines().
void OVERLAY_extra_loose_points | ( | OVERLAY_ExtraCallBuffers * | cb, |
struct GPUBatch * | geom, | ||
const float | mat[4][4], | ||
const float | color[4] | ||
) |
Definition at line 250 of file overlay_extra.c.
References color, DRW_shgroup_call_obmat, OVERLAY_ExtraCallBuffers::extra_loose_points, and pack_v4_in_mat4().
Referenced by OVERLAY_wireframe_cache_populate().
void OVERLAY_extra_point | ( | OVERLAY_ExtraCallBuffers * | cb, |
const float | point[3], | ||
const float | color[4] | ||
) |
Definition at line 220 of file overlay_extra.c.
References color, DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::extra_points, and point.
Referenced by OVERLAY_relationship_lines().
void OVERLAY_extra_wire | ( | OVERLAY_ExtraCallBuffers * | cb, |
struct GPUBatch * | geom, | ||
const float | mat[4][4], | ||
const float | color[4] | ||
) |
Definition at line 260 of file overlay_extra.c.
References col, color, DRW_shgroup_call_obmat, OVERLAY_ExtraCallBuffers::extra_wire, pack_v4_in_mat4(), and UNPACK3.
Referenced by OVERLAY_lattice_cache_populate(), and OVERLAY_wireframe_cache_populate().
void OVERLAY_facing_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 17 of file overlay_facing.c.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_PrivateData::facing_grp, OVERLAY_PassList::facing_ps, G_draw, IN_FRONT, NOT_IN_FRONT, OVERLAY_shader_facing(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, OVERLAY_Data::stl, and OVERLAY_PrivateData::use_in_front.
Referenced by OVERLAY_cache_init().
void OVERLAY_facing_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 37 of file overlay_facing.c.
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, GPUBatch, 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 61 of file overlay_facing.c.
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 68 of file overlay_facing.c.
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 | ) |
void OVERLAY_fade_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 19 of file overlay_fade.c.
References View3DShading::background_type, OVERLAY_PrivateData::clipping_state, color, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_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, sh, 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.c.
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, GPUBatch, 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.c.
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.c.
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 | ) |
void OVERLAY_gpencil_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 205 of file overlay_gpencil.c.
References add_v3_v3(), BKE_gpencil_layer_active_get(), DRW_Global::block_ubo, bGPgrid::color, copy_m3_m4(), copy_m4_m4(), copy_v3_v3(), Scene::cursor, 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, OVERLAY_PassList::gpencil_canvas_ps, View3DOverlay::gpencil_grid_opacity, bGPdata::grid, OVERLAY_PrivateData::handle_display, View3DOverlay::handle_display, if(), bGPDlayer::layer_mat, bGPgrid::lines, loc_eul_size_to_mat4(), max_ff(), mul_m4_m4m3(), mul_v2_v2fl(), NULL, OB_GPENCIL, DRWContextState::obact, Object::obmat, bGPgrid::offset, View3D::overlay, OVERLAY_shader_gpencil_canvas(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, rescale_m4(), bGPgrid::scale, scene, DRWContextState::scene, sh, OVERLAY_PrivateData::show_handles, size(), state, OVERLAY_Data::stl, swap_v4_v4(), Scene::toolsettings, 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_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 423 of file overlay_gpencil.c.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, Object::data, DRW_context_state_get(), DRW_state_show_text(), View3D::gp_flag, GPENCIL_ANY_MODE, if(), Object::mode, NULL, OB_MODE_EDIT_GPENCIL, OVERLAY_edit_gpencil_cache_populate(), OVERLAY_gpencil_color_names(), DRWContextState::v3d, and V3D_GP_SHOW_MATERIAL_NAME.
Referenced by OVERLAY_cache_populate().
void OVERLAY_gpencil_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 446 of file overlay_gpencil.c.
References DRW_draw_pass(), OVERLAY_PassList::gpencil_canvas_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_grid_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 205 of file overlay_grid.c.
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(), GPUBatch, OVERLAY_PrivateData::grid, OVERLAY_PrivateData::grid_axes, OVERLAY_PrivateData::grid_data, OVERLAY_PrivateData::grid_flag, OVERLAY_PassList::grid_ps, OVERLAY_Instance::grid_ubo, OVERLAY_Data::instance, interp_v4_v4v4(), NULL, OVERLAY_shader_grid(), OVERLAY_shader_grid_background(), OVERLAY_shader_grid_image(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, SHOW_AXIS_Z, OVERLAY_GridData::size, 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 299 of file overlay_grid.c.
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 24 of file overlay_grid.c.
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, OVERLAY_GridData::distance, 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, SpaceImageOverlay::flag, SpaceImage::flag, View3D::flag, float(), OVERLAY_PrivateData::grid, OVERLAY_PrivateData::grid_axes, GRID_BACK, GRID_CAMERA, OVERLAY_PrivateData::grid_data, OVERLAY_PrivateData::grid_flag, OVERLAY_PrivateData::hide_overlays, len_v3(), OVERLAY_GridData::line_size, max_ff(), min_ff(), SpaceImage::mode, negate_v3_v3(), NULL, 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, scene, DRWContextState::scene, SHOW_AXIS_X, SHOW_AXIS_Y, SHOW_AXIS_Z, SHOW_GRID, SI_CUSTOM_GRID, SI_GRID_STEPS_LEN, SI_MODE_UV, SI_OVERLAY_SHOW_GRID_BACKGROUND, OVERLAY_GridData::size, DRWContextState::space_data, SPACE_IMAGE, OVERLAY_PrivateData::space_type, OVERLAY_GridData::steps, 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_GridData::zoom_factor, 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 464 of file overlay_image.c.
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 441 of file overlay_image.c.
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 37 of file overlay_image.c.
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 295 of file overlay_image.c.
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, MIN2, OVERLAY_shader_image(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, Scene::r, DRWContextState::rv3d, scene, DRWContextState::scene, sh, 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 472 of file overlay_image.c.
References DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PassList::image_empties_blend_ps, OVERLAY_PassList::image_empties_ps, NULL, 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 356 of file overlay_image.c.
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, Object::color, 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_orig_height(), GPU_texture_orig_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(), NULL, 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, Object::obmat, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), overlay_image_calc_aspect(), OVERLAY_shader_image(), OVERLAY_Data::psl, DRWContextState::rv3d, DRWContextState::scene, sh, size(), 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 485 of file overlay_image.c.
References DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PassList::image_empties_front_ps, OVERLAY_PassList::image_foreground_ps, NULL, 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 28 of file overlay_image.c.
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 450 of file overlay_image.c.
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 46 of file overlay_lattice.c.
References color, DRW_cache_lattice_wire_get(), DRW_context_state_get(), DRW_object_wire_theme_get(), GPUBatch, Object::obmat, 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 598 of file overlay_extra.c.
References Freestyle::a, Light::area_shape, Light::area_size, Light::area_sizey, Light::att_dist, usdtokens::b(), Freestyle::c, Light::clipsta, color, copy_m4_m4(), cosf, Object::data, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), ELEM, OVERLAY_ExtraCallBuffers::groundline, LA_AREA, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_AREA_SQUARE, LA_LOCAL, LA_SHOW_CONE, LA_SPOT, LA_SUN, OVERLAY_ExtraCallBuffers::light_area, OVERLAY_ExtraCallBuffers::light_point, OVERLAY_ExtraCallBuffers::light_spot, OVERLAY_ExtraCallBuffers::light_spot_cone_back, OVERLAY_ExtraCallBuffers::light_spot_cone_front, OVERLAY_ExtraCallBuffers::light_sun, max_ff(), Light::mode, Object::obmat, OVERLAY_extra_call_buffer_get(), pos, rescale_m4(), Light::spotblend, Light::spotsize, sqr(), sqrtf, Light::type, UNPACK3, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_lightprobe_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 687 of file overlay_extra.c.
References LightProbe::attenuation_type, Object::base_flag, BASE_SELECTED, LightProbe::clipend, LightProbe::clipsta, copy_m4_m4(), Object::data, LightProbe::distinf, LightProbe::distpar, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_shgroup_call_procedural_points(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_mat4_copy(), DRW_state_is_select(), OVERLAY_ExtraCallBuffers::empty_cube, Object::empty_drawsize, OVERLAY_PrivateData::extra_grid_grp, LightProbe::falloff, LightProbe::flag, LightProbe::grid_resolution_x, LightProbe::grid_resolution_y, LightProbe::grid_resolution_z, OVERLAY_ExtraCallBuffers::groundline, LIGHTPROBE_FLAG_CUSTOM_PARALLAX, LIGHTPROBE_FLAG_SHOW_CLIP_DIST, LIGHTPROBE_FLAG_SHOW_DATA, LIGHTPROBE_FLAG_SHOW_INFLUENCE, LIGHTPROBE_FLAG_SHOW_PARALLAX, LIGHTPROBE_SHAPE_BOX, LIGHTPROBE_TYPE_CUBE, LIGHTPROBE_TYPE_GRID, LIGHTPROBE_TYPE_PLANAR, mul_v3_fl(), normalize_m4_m4(), normalize_v3_length(), NULL, OB_CUBE, OB_EMPTY_SPHERE, OB_SINGLE_ARROW, Object::obmat, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), LightProbe::parallax_type, OVERLAY_StorageList::pd, pos, OVERLAY_ExtraCallBuffers::probe_cube, OVERLAY_ExtraCallBuffers::probe_grid, OVERLAY_ExtraCallBuffers::probe_planar, OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_Data::stl, TH_ACTIVE, LightProbe::type, DRWContextState::view_layer, and zero_v3().
Referenced by OVERLAY_cache_populate().
void OVERLAY_metaball_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 20 of file overlay_metaball.c.
References DRW_Global::block_ubo, BUF_INSTANCE, OVERLAY_PrivateData::clipping_state, DRW_cache_bone_point_wire_outline_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, G_draw, OVERLAY_PrivateData::handle, OVERLAY_InstanceFormats::instance_bone, OVERLAY_PrivateData::mball, OVERLAY_PassList::metaball_ps, OVERLAY_shader_armature_sphere(), OVERLAY_shader_instance_formats_get(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_metaball_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 102 of file overlay_metaball.c.
References color, Object::data, DRW_buffer_add_entry_struct(), DRW_context_state_get(), DRW_object_wire_theme_get(), Object::dtx, MetaBall::elems, OVERLAY_PrivateData::handle, LISTBASE_FOREACH, OVERLAY_PrivateData::mball, metaball_instance_data_set(), OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, OVERLAY_Data::stl, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_metaball_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 120 of file overlay_metaball.c.
References DRW_draw_pass(), OVERLAY_PassList::metaball_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_metaball_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 127 of file overlay_metaball.c.
References DRW_draw_pass(), OVERLAY_PassList::metaball_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_mode_transfer_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 137 of file overlay_mode_transfer.c.
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 18 of file overlay_mode_transfer.c.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_PrivateData::mode_transfer, OVERLAY_PassList::mode_transfer_ps, OVERLAY_StorageList::pd, PIL_check_seconds_timer(), 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 71 of file overlay_mode_transfer.c.
References OVERLAY_PrivateData::any_animated, BKE_sculptsession_use_pbvh_draw(), DRW_Global::block_ubo, color, 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, GPUBatch, IN_FRONT, OVERLAY_PrivateData::mode_transfer, mode_transfer_alpha_for_animation_time_get(), mode_transfer_is_animation_running(), OVERLAY_PassList::mode_transfer_ps, NOT_IN_FRONT, OB_DRAW_IN_FRONT, Object_Runtime::overlay_mode_transfer_start_time, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, Object::runtime, DRWContextState::rv3d, sh, 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 123 of file overlay_mode_transfer.c.
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 130 of file overlay_mode_transfer.c.
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 25 of file overlay_motion_path.c.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_WRITE_COLOR, G_draw, OVERLAY_PrivateData::motion_path_lines_grp, OVERLAY_PrivateData::motion_path_points_grp, OVERLAY_PassList::motion_paths_ps, OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_motion_path_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 196 of file overlay_motion_path.c.
References bPose::avs, Object::avs, bPose::chanbase, DRW_context_state_get(), LISTBASE_FOREACH, motion_path_cache(), Object::mpath, NULL, OB_ARMATURE, OVERLAY_armature_is_pose_mode(), Object::pose, and Object::type.
Referenced by OVERLAY_cache_populate().
void OVERLAY_motion_path_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 215 of file overlay_motion_path.c.
References DRW_draw_pass(), OVERLAY_PassList::motion_paths_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_outline_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 106 of file overlay_outline.c.
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, NULL, 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, sh, 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 280 of file overlay_outline.c.
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, DRW_shgroup_call_instance_range(), Object::dt, GPUBatch, NULL, OB_BOUNDBOX, OB_CURVES, OB_GPENCIL, OB_POINTCLOUD, OB_VOLUME, OVERLAY_DupliData::outline_geom, OVERLAY_DupliData::outline_shgrp, OVERLAY_PrivateData::outlines_grp, OVERLAY_PrivateData::outlines_ptcloud_grp, OVERLAY_outline_curves(), OVERLAY_outline_gpencil(), OVERLAY_outline_volume(), OVERLAY_StorageList::pd, RegionView3D::persp, DRWContextState::rv3d, RV3D_ORTHO, OVERLAY_Data::stl, Object::type, OVERLAY_PrivateData::wireframe_mode, and OVERLAY_PrivateData::xray_enabled_and_not_wire.
Referenced by OVERLAY_cache_populate().
void OVERLAY_outline_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 356 of file overlay_outline.c.
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(), NULL, 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 72 of file overlay_outline.c.
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_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 64 of file overlay_paint.c.
References OVERLAY_PrivateData::alpha_blending, Image::alpha_mode, BKE_image_get_gpu_texture(), 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(), NULL, OB_WIRE, usdtokens::opacity(), 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, sh, 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 252 of file overlay_paint.c.
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 52 of file overlay_paint.c.
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 190 of file overlay_paint.c.
References Object::data, DEG_get_original_object(), DRW_cache_mesh_surface_get(), DRW_cache_mesh_surface_texpaint_single_get(), DRW_shgroup_call, Mesh::editflag, GPUBatch, ME_EDIT_PAINT_FACE_SEL, NULL, 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 209 of file overlay_paint.c.
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, GPUBatch, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, Object::mode, NULL, 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 247 of file overlay_paint.c.
References OVERLAY_paint_vertex_cache_populate().
Referenced by OVERLAY_cache_populate().
void OVERLAY_particle_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 123 of file overlay_particle.c.
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, sh, 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 149 of file overlay_particle.c.
References BKE_object_material_get_eval(), color, copy_v3_v3(), ParticleSettings::draw_as, ParticleSettings::draw_size, 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, GPUBatch, if(), LISTBASE_FOREACH, NULL, ParticleSettings::omat, 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, OVERLAY_Data::stl, and ParticleSettings::type.
Referenced by OVERLAY_cache_populate().
void OVERLAY_particle_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 200 of file overlay_particle.c.
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 2525 of file overlay_armature.c.
References armature_context_setup(), draw_armature_pose(), NULL, 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 2567 of file overlay_armature.c.
References OVERLAY_PrivateData::armature_bone_select_act_grp, OVERLAY_PrivateData::armature_bone_select_grp, DRW_cache_object_surface_get(), DRW_shgroup_call, GPUBatch, 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 2613 of file overlay_armature.c.
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(), NULL, 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 17 of file overlay_sculpt.c.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_float_copy(), DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_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, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_sculpt_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 33 of file overlay_sculpt.c.
References BKE_sculptsession_use_pbvh_draw(), Object::data, DRW_context_state_get(), DRW_mesh_batch_cache_get_sculpt_overlays(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), GPUBatch, SculptSession::pbvh, pbvh_has_face_sets(), pbvh_has_mask(), OVERLAY_StorageList::pd, DRWContextState::rv3d, Object::sculpt, OVERLAY_PrivateData::sculpt_mask_grp, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_sculpt_curves_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 15 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_WRITE_COLOR, OVERLAY_PrivateData::overlay, OVERLAY_shader_sculpt_curves_selection(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::sculpt_curves_selection_grp, OVERLAY_PassList::sculpt_curves_selection_ps, View3DOverlay::sculpt_mode_mask_opacity, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_sculpt_curves_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 52 of file overlay_sculpt_curves.cc.
References ATTR_DOMAIN_POINT, curves, DRW_curves_texture_for_evaluated_attribute(), DRW_shgroup_curves_create_sub(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), everything_selected(), OVERLAY_StorageList::pd, OVERLAY_PrivateData::sculpt_curves_selection_grp, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_sculpt_curves_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 84 of file overlay_sculpt_curves.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_PrivateData::painting, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PassList::sculpt_curves_selection_ps, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_sculpt_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 66 of file overlay_sculpt.c.
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().
Definition at line 111 of file overlay_shader.c.
References OVERLAY_Shaders::antialiasing, e_data, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_antialiasing_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 259 of file overlay_shader.c.
References OVERLAY_Shaders::armature_dof_solid, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 248 of file overlay_shader.c.
References OVERLAY_Shaders::armature_dof_wire, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 220 of file overlay_shader.c.
References OVERLAY_Shaders::armature_envelope_outline, OVERLAY_Shaders::armature_envelope_solid, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 192 of file overlay_shader.c.
References OVERLAY_Shaders::armature_shape_outline, OVERLAY_Shaders::armature_shape_solid, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 209 of file overlay_shader.c.
References OVERLAY_Shaders::armature_shape_wire, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 175 of file overlay_shader.c.
References OVERLAY_Shaders::armature_sphere_outline, OVERLAY_Shaders::armature_sphere_solid, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), OVERLAY_metaball_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 237 of file overlay_shader.c.
References OVERLAY_Shaders::armature_stick, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 270 of file overlay_shader.c.
References OVERLAY_Shaders::armature_wire, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_armature_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 120 of file overlay_shader.c.
References OVERLAY_Shaders::background, e_data, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_background_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 129 of file overlay_shader.c.
References OVERLAY_Shaders::clipbound, e_data, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_background_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 138 of file overlay_shader.c.
References OVERLAY_Shaders::depth_only, DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), OVERLAY_paint_cache_init(), OVERLAY_volume_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 281 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curve_handle, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curve_cache_init(), OVERLAY_edit_gpencil_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 292 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curve_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curve_cache_init(), OVERLAY_edit_curves_cache_init(), OVERLAY_edit_gpencil_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 303 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_curve_wire, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_curve_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 314 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_gpencil_guide_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_gpencil_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 326 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_gpencil_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_gpencil_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 337 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_gpencil_wire, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_gpencil_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 348 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_lattice_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_lattice_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 359 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_lattice_wire, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_lattice_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 403 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_analysis, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 160 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_edge, OVERLAY_Shaders::edit_mesh_edge_flat, GPU_shader_create_from_info_name(), NULL, sh, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 370 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_face, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 381 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_facedot, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 392 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_normals, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 414 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_skin_root, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 149 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_mesh_vert, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_mesh_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 437 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_particle_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_particle_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 425 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::edit_particle_strand, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_edit_particle_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 927 of file overlay_shader.c.
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().
Definition at line 918 of file overlay_shader.c.
References e_data, OVERLAY_Shaders::edit_uv_edges, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 946 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 937 of file overlay_shader.c.
References e_data, OVERLAY_Shaders::edit_uv_faces, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 595 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 585 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 976 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 965 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 987 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 955 of file overlay_shader.c.
References e_data, OVERLAY_Shaders::edit_uv_verts, GPU_shader_create_from_info_name(), and sh_data.
Referenced by OVERLAY_edit_uv_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 448 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra, OVERLAY_Shaders::extra_select, GPU_shader_create_from_info_name(), if(), sh, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 461 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_lightprobe_grid, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 472 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_groundline, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 512 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_loose_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 523 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_point, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 483 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::extra_wire, OVERLAY_Shaders::extra_wire_select, GPU_shader_create_from_info_name(), if(), NULL, sh, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_extra_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 534 of file overlay_shader.c.
References DRW_context_state_get(), e_data, OVERLAY_Shaders::facing, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_facing_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 1069 of file overlay_shader.c.
References ARRAY_SIZE, DRW_SHADER_FREE_SAFE, e_data, g_formats, MEM_SAFE_FREE, and sh_data.
Referenced by OVERLAY_engine_free(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 545 of file overlay_shader.c.
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_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 558 of file overlay_shader.c.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::grid, and sh_data.
Referenced by OVERLAY_grid_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 567 of file overlay_shader.c.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::grid_background, and sh_data.
Referenced by OVERLAY_grid_cache_init().
Definition at line 576 of file overlay_shader.c.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::grid_image, and sh_data.
Referenced by OVERLAY_grid_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 604 of file overlay_shader.c.
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(), OVERLAY_image_empty_cache_populate(), and blender::draw::test_overlay_glsl_shaders().
OVERLAY_InstanceFormats* OVERLAY_shader_instance_formats_get | ( | void | ) |
Definition at line 1001 of file overlay_shader.c.
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().
Definition at line 616 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::motion_path_line, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_motion_path_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 627 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::motion_path_vert, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_motion_path_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 691 of file overlay_shader.c.
References e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_detect, and sh_data.
Referenced by OVERLAY_outline_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 638 of file overlay_shader.c.
References DRW_context_state_get(), e_data, 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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 655 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass_curves, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 667 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass_gpencil, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 679 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::outline_prepass_pointcloud, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_outline_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 700 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 712 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 724 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_texture, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 736 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_vertcol, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 748 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 764 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::paint_wire, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_paint_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 776 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::particle_dot, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_particle_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 787 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::particle_shape, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_particle_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 809 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 798 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), OVERLAY_Shaders::sculpt_mask, DRWContextState::sh_cfg, and sh_data.
Referenced by OVERLAY_sculpt_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 821 of file overlay_shader.c.
References DRW_context_state_get(), e_data, 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 blender::draw::test_overlay_glsl_shaders().
Definition at line 856 of file overlay_shader.c.
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().
Definition at line 832 of file overlay_shader.c.
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(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 892 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::wireframe.
Referenced by OVERLAY_wireframe_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 881 of file overlay_shader.c.
References DRW_context_state_get(), e_data, GPU_shader_create_from_info_name(), DRWContextState::sh_cfg, sh_data, and OVERLAY_Shaders::wireframe_select.
Referenced by OVERLAY_wireframe_cache_init(), and blender::draw::test_overlay_glsl_shaders().
Definition at line 905 of file overlay_shader.c.
References e_data, GPU_shader_create_from_info_name(), sh_data, and OVERLAY_Shaders::xray_fade.
Referenced by OVERLAY_antialiasing_cache_init(), and blender::draw::test_overlay_glsl_shaders().
void OVERLAY_speaker_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 791 of file overlay_extra.c.
References DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), Object::obmat, OVERLAY_extra_call_buffer_get(), OVERLAY_ExtraCallBuffers::speaker, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
void OVERLAY_volume_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 14 of file overlay_volume.c.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_STATE_DEPTH_LESS_EQUAL, DRW_state_is_select(), DRW_STATE_WRITE_DEPTH, NULL, OVERLAY_shader_depth_only(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, 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 33 of file overlay_volume.c.
References DRW_cache_volume_selection_surface_get(), DRW_shgroup_call, DRW_state_is_select(), GPUBatch, NULL, 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 46 of file overlay_volume.c.
References DRW_draw_pass(), OVERLAY_Data::psl, and OVERLAY_PassList::volume_ps.
Referenced by OVERLAY_draw_scene().
void OVERLAY_wireframe_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 40 of file overlay_wireframe.c.
References 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_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, if(), NULL, OB_SOLID, OB_WIRE, OVERLAY_PrivateData::overlay, OVERLAY_shader_wireframe(), OVERLAY_shader_wireframe_select(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, View3D::shading, OVERLAY_PrivateData::shdata, state, OVERLAY_Data::stl, OVERLAY_TextureList::temp_depth_tx, OVERLAY_Data::txl, View3DShading::type, DRWContextState::v3d, V3D_SHADING_OBJECT_COLOR, V3D_SHADING_RANDOM_COLOR, View3DShading::wire_color_type, 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 155 of file overlay_wireframe.c.
References OVERLAY_DupliData::base_flag, Object::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, ParticleSettings::draw_as, 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::edit_mesh, ELEM, OVERLAY_ExtraCallBuffers::extra_loose_points, OVERLAY_ExtraCallBuffers::extra_wire, ListBase::first, View3DOverlay::flag, GPUBatch, if(), Object::mode, NULL, OB_CURVES_LEGACY, OB_DRAW_ALL_EDGES, OB_DRAW_IN_FRONT, OB_DRAWWIRE, OB_FONT, OB_GPENCIL, OB_MESH, OB_MODE_SCULPT, OB_POINTCLOUD, OB_SURF, OB_VOLUME, OB_WIRE, Object::obmat, 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, Object::sculpt, OVERLAY_Data::stl, Mesh::totedge, Mesh::totvert, 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 338 of file overlay_wireframe.c.
References data, DRW_draw_pass(), DRW_view_set_active(), NULL, 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 349 of file overlay_wireframe.c.
References data, DRW_draw_pass(), DRW_view_set_active(), NULL, 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 32 of file overlay_wireframe.c.
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 203 of file overlay_antialiasing.c.
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_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 222 of file overlay_antialiasing.c.
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 234 of file overlay_antialiasing.c.
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 480 of file overlay_private.h.
References Freestyle::a, usdtokens::b(), Freestyle::c, 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 495 of file overlay_private.h.
References Freestyle::a, and 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 490 of file overlay_private.h.
References pack_data_in_mat4(), and v.
Referenced by OVERLAY_extra_loose_points(), and OVERLAY_extra_wire().