|
Blender V5.0
|
#include <overlay_private.hh>
Inherits blender::draw::select::SelectMap.
Static Public Member Functions | |
| static float | vertex_size_get () |
| Static Public Member Functions inherited from blender::draw::select::SelectMap | |
| static const ID | select_invalid_id () |
Definition at line 588 of file overlay_private.hh.
|
inline |
Definition at line 673 of file overlay_private.hh.
References blender::draw::select::SelectMap::SelectMap(), and shapes.
|
inline |
Definition at line 676 of file overlay_private.hh.
References free_movieclips_textures().
|
inline |
Definition at line 766 of file overlay_private.hh.
References blender::draw::TextureFromPool::acquire(), DefaultTextureList::color, DefaultTextureList::color_overlay, DefaultFramebufferList::default_fb, DefaultTextureList::depth, DefaultTextureList::depth_in_front, blender::draw::Framebuffer::ensure(), GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_SHADER_READ, GPU_TEXTURE_USAGE_SHADER_WRITE, DefaultFramebufferList::in_front_fb, blender::draw::Texture::is_valid(), blender::draw::Texture::size(), state, DRWContext::viewport_framebuffer_list_get(), DRWContext::viewport_texture_list_get(), and blender::draw::TextureRef::wrap().
|
inline |
Definition at line 928 of file overlay_private.hh.
References TH_BACK, and UI_GetThemeColorBlendShade4fv().
Referenced by object_background_blend_color().
Definition at line 941 of file overlay_private.hh.
References state, TH_BACK, UI_GetThemeColor3fv(), V3D_SHADING_BACKGROUND_VIEWPORT, and V3D_SHADING_BACKGROUND_WORLD.
|
inline |
Definition at line 760 of file overlay_private.hh.
References blender::draw::select::SelectMap::clipping_plane_count, and free_movieclips_textures().
|
inline |
Definition at line 956 of file overlay_private.hh.
References bg_movie_clips, and BKE_movieclip_free_gputexture().
Referenced by begin_sync(), release(), and ~Resources().
|
inline |
Definition at line 684 of file overlay_private.hh.
References blender::draw::overlay::ShaderModule::module_get(), blender::draw::select::SelectMap::selection_type, and shaders.
|
inline |
Convenience functions.
Definition at line 974 of file overlay_private.hh.
References blender::draw::select::SelectMap::selection_type.
Referenced by blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::Armatures::draw_armature_edit(), blender::draw::overlay::Armatures::draw_armature_pose(), blender::draw::overlay::Prepass::sculpt_sync(), and update_theme_settings().
|
inline |
Definition at line 935 of file overlay_private.hh.
References background_blend_color(), object_wire_theme_id(), and state.
|
inline |
Definition at line 922 of file overlay_private.hh.
References object_wire_color(), object_wire_theme_id(), and state.
|
inline |
Definition at line 895 of file overlay_private.hh.
References Object::base_flag, BASE_FROM_SET, blender::draw::ObjectRef::object, TH_ACTIVE, TH_CAMERA, TH_EMPTY, TH_LIGHT, TH_SELECT, TH_SPEAKER, TH_TRANSFORM, TH_WIRE_EDIT, theme, and UNLIKELY.
Referenced by blender::draw::overlay::Armatures::create_draw_context(), and object_wire_color().
|
inline |
Definition at line 859 of file overlay_private.hh.
References active, Object::base_flag, BASE_SELECTED, G, G_TRANSFORM_OBJ, blender::draw::ObjectRef::is_active(), Object::mode, OB_CAMERA, OB_EMPTY, OB_LAMP, OB_LIGHTPROBE, OB_MODE_EDIT, OB_SPEAKER, blender::draw::ObjectRef::object, state, TH_ACTIVE, TH_CAMERA, TH_EMPTY, TH_LIGHT, TH_SELECT, TH_SPEAKER, TH_TRANSFORM, TH_WIRE, TH_WIRE_EDIT, and Object::type.
Referenced by object_background_blend_color(), and object_wire_color().
|
inline |
Definition at line 847 of file overlay_private.hh.
References free_movieclips_textures(), and blender::draw::TextureFromPool::release().
| void blender::draw::overlay::Resources::update_clip_planes | ( | const State & | state | ) |
Definition at line 222 of file overlay_instance.cc.
References clip_planes_buf, i, RV3D_BOXCLIP, RV3D_LOCK_FLAGS, and state.
| void blender::draw::overlay::Resources::update_theme_settings | ( | const DRWContext * | ctx, |
| const State & | state ) |
Definition at line 242 of file overlay_instance.cc.
References b, blender::eevee::UniformData::camera, blender::math::dot(), View3DShading::flag, float, globals_buf, blender::math::interpolate(), is_selection(), max_ff(), OB_SOLID, blender::math::reduce_add(), rgba_uchar_to_float(), size(), srgb_to_linearrgb_v4(), state, TH_ACTIVE, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, TH_BACK, TH_BACK_GRAD, TH_BEVEL, TH_BONE_LOCKED_WEIGHT, TH_BONE_POSE, TH_BONE_POSE_ACTIVE, TH_BONE_SOLID, TH_CAMERA, TH_CAMERA_PATH, TH_CFRAME, TH_CREASE, TH_EDGE_MODE_SELECT, TH_EDGE_SELECT, TH_EDGE_WIDTH, TH_EDITMESH_ACTIVE, TH_EMPTY, TH_FACE, TH_FACE_BACK, TH_FACE_FRONT, TH_FACE_MODE_SELECT, TH_FACE_RETOPOLOGY, TH_FACE_SELECT, TH_FACEDOT_SIZE, TH_FRAME_AFTER, TH_FRAME_BEFORE, TH_FREESTYLE, TH_GP_VERTEX, TH_GP_VERTEX_SELECT, TH_GP_VERTEX_SIZE, TH_GRID, TH_HANDLE_ALIGN, TH_HANDLE_AUTO, TH_HANDLE_AUTOCLAMP, TH_HANDLE_FREE, TH_HANDLE_SEL_ALIGN, TH_HANDLE_SEL_AUTO, TH_HANDLE_SEL_AUTOCLAMP, TH_HANDLE_SEL_FREE, TH_HANDLE_SEL_VECT, TH_HANDLE_VECT, TH_LIGHT, TH_LNORMAL, TH_NORMAL, TH_NURB_SEL_ULINE, TH_NURB_SEL_VLINE, TH_NURB_ULINE, TH_NURB_VLINE, TH_OBCENTER_DIA, TH_SEAM, TH_SELECT, TH_SHARP, TH_SKIN_ROOT, TH_SPEAKER, TH_TEXT, TH_TEXT_HI, TH_TRANSFORM, TH_TRANSPARENT_CHECKER_PRIMARY, TH_TRANSPARENT_CHECKER_SECONDARY, TH_TRANSPARENT_CHECKER_SIZE, TH_UV_SHADOW, TH_V3D_CLIPPING_BORDER, TH_VERTEX, TH_VERTEX_SELECT, TH_VERTEX_UNREFERENCED, TH_VNORMAL, TH_WIRE, TH_WIRE_EDIT, theme, View3DShading::type, U, UI_GetThemeColor4fv(), UI_GetThemeColorBlendShade3fv(), UI_GetThemeColorBlendShade4fv(), UI_GetThemeColorShade4fv(), UI_GetThemeColorShadeAlpha4fv(), UI_GetThemeValuef(), USER_GPU_FLAG_FRESNEL_EDIT, V3D_SHADING_BACKFACE_CULLING, vertex_size_get(), and DRWContext::viewport_size_get().
|
inlinestatic |
Definition at line 965 of file overlay_private.hh.
References M_SQRT2, max_ff(), TH_VERTEX_SIZE, and UI_GetThemeValuef().
Referenced by blender::draw::edit_select::Instance::begin_sync(), and update_theme_settings().
Definition at line 669 of file overlay_private.hh.
Referenced by free_movieclips_textures().
| draw::UniformArrayBuffer<float4, 6> blender::draw::overlay::Resources::clip_planes_buf |
Definition at line 642 of file overlay_private.hh.
Referenced by blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Outline::flat_objects_pass_sync(), and update_clip_planes().
| TextureFromPool blender::draw::overlay::Resources::color_overlay_alloc_tx = {"overlay_color_overlay_alloc_tx"} |
Definition at line 625 of file overlay_private.hh.
| TextureRef blender::draw::overlay::Resources::color_overlay_tx |
Definition at line 645 of file overlay_private.hh.
| TextureFromPool blender::draw::overlay::Resources::color_render_alloc_tx = {"overlay_color_render_alloc_tx"} |
Definition at line 626 of file overlay_private.hh.
| TextureRef blender::draw::overlay::Resources::color_render_tx |
Definition at line 646 of file overlay_private.hh.
| TextureFromPool blender::draw::overlay::Resources::depth_in_front_alloc_tx = {"overlay_depth_in_front_tx"} |
Definition at line 624 of file overlay_private.hh.
| TextureRef blender::draw::overlay::Resources::depth_in_front_tx |
Definition at line 644 of file overlay_private.hh.
| detail::SubPassVector<GreasePencilDepthPlane, 16> blender::draw::overlay::Resources::depth_planes |
Definition at line 637 of file overlay_private.hh.
Referenced by blender::draw::overlay::GreasePencil::compute_depth_planes(), and blender::draw::overlay::GreasePencil::draw_grease_pencil().
| int64_t blender::draw::overlay::Resources::depth_planes_count = 0 |
Definition at line 638 of file overlay_private.hh.
Referenced by blender::draw::overlay::GreasePencil::compute_depth_planes(), and blender::draw::overlay::GreasePencil::draw_grease_pencil().
| TextureRef blender::draw::overlay::Resources::depth_target_in_front_tx |
Definition at line 661 of file overlay_private.hh.
| TextureRef blender::draw::overlay::Resources::depth_target_tx |
Depth target. Can either be default depth buffer texture from DefaultTextureList or xray_depth_tx if X-ray is enabled.
Definition at line 660 of file overlay_private.hh.
| TextureRef blender::draw::overlay::Resources::depth_tx |
Scene depth buffer that can also be used as render target for overlays.
Can only be bound as a texture if either:
Definition at line 654 of file overlay_private.hh.
Referenced by blender::draw::overlay::Outline::draw_line_only_ex().
| Texture blender::draw::overlay::Resources::dummy_depth_tx = {"dummy_depth_tx"} |
Definition at line 630 of file overlay_private.hh.
| draw::UniformBuffer<UniformData> blender::draw::overlay::Resources::globals_buf |
Definition at line 640 of file overlay_private.hh.
Referenced by blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Outline::flat_objects_pass_sync(), and update_theme_settings().
| TextureFromPool blender::draw::overlay::Resources::line_tx = {"line_tx"} |
Definition at line 615 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_color_only_fb = {"overlay_color_only_fb"} |
Definition at line 592 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_fb = {"overlay_fb"} |
Definition at line 596 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_in_front_fb = {"overlay_in_front_fb"} |
Definition at line 600 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_line_fb = {"overlay_line_fb"} |
Definition at line 598 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_line_in_front_fb = {"overlay_line_in_front_fb"} |
Definition at line 602 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_line_only_fb = {"overlay_line_only_fb"} |
Definition at line 594 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_output_color_only_fb = {"overlay_output_color_only_fb"} |
Definition at line 605 of file overlay_private.hh.
| Framebuffer blender::draw::overlay::Resources::overlay_output_fb = {"overlay_output_fb"} |
Definition at line 607 of file overlay_private.hh.
| TextureFromPool blender::draw::overlay::Resources::overlay_tx = {"overlay_tx"} |
Definition at line 617 of file overlay_private.hh.
| gpu::FrameBuffer* blender::draw::overlay::Resources::render_fb = nullptr |
Definition at line 611 of file overlay_private.hh.
| gpu::FrameBuffer* blender::draw::overlay::Resources::render_in_front_fb = nullptr |
Definition at line 612 of file overlay_private.hh.
| ShaderModule* blender::draw::overlay::Resources::shaders = nullptr |
Definition at line 589 of file overlay_private.hh.
Referenced by blender::draw::overlay::ModeTransfer::begin_sync(), blender::draw::overlay::Empties::end_sync(), blender::draw::overlay::Outline::flat_objects_pass_sync(), and init().
| const ShapeCache& blender::draw::overlay::Resources::shapes |
Definition at line 671 of file overlay_private.hh.
Referenced by drw_shgroup_bone_custom_empty(), blender::draw::overlay::Empties::end_sync(), and Resources().
| UniformData& blender::draw::overlay::Resources::theme = globals_buf |
Definition at line 641 of file overlay_private.hh.
Referenced by bone_draw_line(), draw_axes(), draw_points(), drw_shgroup_bone_ik_lines(), drw_shgroup_bone_ik_no_target_lines(), drw_shgroup_bone_ik_spline_lines(), drw_shgroup_bone_relationship_lines(), get_bone_hint_color(), get_bone_solid_color(), get_bone_solid_with_consts_color(), get_bone_wire_color(), object_wire_color(), and update_theme_settings().
| ColorBand blender::draw::overlay::Resources::weight_ramp_copy = {} |
Definition at line 665 of file overlay_private.hh.
| bool blender::draw::overlay::Resources::weight_ramp_custom = false |
Copy of the settings the current texture was generated with. Used to detect updates.
Definition at line 664 of file overlay_private.hh.
| Texture blender::draw::overlay::Resources::weight_ramp_tx = {"weight_ramp"} |
Baked color ramp texture from theme and user settings. Maps weight [0..1] to color.
Definition at line 667 of file overlay_private.hh.
| TextureFromPool blender::draw::overlay::Resources::xray_depth_in_front_tx = {"xray_depth_in_front_tx"} |
Definition at line 620 of file overlay_private.hh.
| TextureFromPool blender::draw::overlay::Resources::xray_depth_tx = {"xray_depth_tx"} |
Definition at line 619 of file overlay_private.hh.