|
Blender V4.3
|
#include "DRW_render.hh"#include "draw_manager_text.hh"#include "ED_grease_pencil.hh"#include "BKE_attribute.hh"#include "BKE_curves.hh"#include "BKE_grease_pencil.hh"#include "DNA_grease_pencil_types.h"#include "overlay_private.hh"#include "DEG_depsgraph_query.hh"Go to the source code of this file.
Functions | |
| static void | is_selection_visible (bool &r_show_points, bool &r_show_lines) |
| static void | overlay_grease_pencil_draw_stroke_color_name (Object &object, const int mat_nr, const blender::float3 position) |
| static void | OVERLAY_grease_pencil_material_names (Object *ob) |
| void | OVERLAY_edit_grease_pencil_cache_init (OVERLAY_Data *vedata) |
| void | OVERLAY_grease_pencil_cache_init (OVERLAY_Data *vedata) |
| void | OVERLAY_edit_grease_pencil_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_sculpt_grease_pencil_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_weight_grease_pencil_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_vertex_grease_pencil_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_grease_pencil_draw (OVERLAY_Data *vedata) |
| void | OVERLAY_edit_grease_pencil_draw (OVERLAY_Data *vedata) |
|
static |
Definition at line 25 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), ELEM, View3D::gp_flag, GP_SCULPT_MASK_SELECTMODE_POINT, GP_SCULPT_MASK_SELECTMODE_SEGMENT, GP_SELECTMODE_POINT, GP_SELECTMODE_SEGMENT, GP_VERTEX_MASK_SELECTMODE_POINT, GP_VERTEX_MASK_SELECTMODE_SEGMENT, ToolSettings::gpencil_selectmode_edit, ToolSettings::gpencil_selectmode_sculpt, ToolSettings::gpencil_selectmode_vertex, OB_MODE_SCULPT_GREASE_PENCIL, OB_MODE_VERTEX_GREASE_PENCIL, OB_MODE_WEIGHT_GREASE_PENCIL, DRWContextState::object_mode, DRWContextState::scene, Scene::toolsettings, DRWContextState::v3d, and V3D_GP_SHOW_EDIT_LINES.
Referenced by OVERLAY_edit_grease_pencil_cache_init(), and OVERLAY_grease_pencil_material_names().
| void OVERLAY_edit_grease_pencil_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 142 of file overlay_grease_pencil.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PassList::edit_grease_pencil_ps, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, G_draw, View3D::gp_flag, is_selection_visible(), OB_MODE_WEIGHT_GREASE_PENCIL, DRWContextState::object_mode, OVERLAY_shader_edit_particle_point(), OVERLAY_shader_edit_particle_strand(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, DRWContextState::v3d, V3D_GP_SHOW_STROKE_DIRECTION, and DRW_Global::weight_ramp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_edit_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 281 of file overlay_grease_pencil.cc.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, DRW_context_state_get(), DRW_shgroup_call_no_cull, DRW_state_show_text(), OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, View3D::gp_flag, OVERLAY_grease_pencil_material_names(), OVERLAY_StorageList::pd, DRWContextState::scene, OVERLAY_Data::stl, DRWContextState::v3d, and V3D_GP_SHOW_MATERIAL_NAME.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_edit_grease_pencil_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 395 of file overlay_grease_pencil.cc.
References DRW_draw_pass(), OVERLAY_PassList::edit_grease_pencil_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_grease_pencil_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 189 of file overlay_grease_pencil.cc.
References DRW_Global::block_ubo, Object::data, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_call_procedural_lines(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_view_viewmat_get(), View3D::flag2, blender::math::from_loc_scale(), G_draw, View3D::gp_flag, GP_LOCKAXIS_CURSOR, GP_LOCKAXIS_VIEW, GP_LOCKAXIS_X, GP_LOCKAXIS_Y, GP_LOCKAXIS_Z, GP_PROJECT_CURSOR, GP_PROJECT_DEPTH_STROKE, GP_PROJECT_DEPTH_VIEW, ToolSettings::gp_sculpt, View3DOverlay::gpencil_grid_color, View3DOverlay::gpencil_grid_offset, View3DOverlay::gpencil_grid_opacity, View3DOverlay::gpencil_grid_scale, View3DOverlay::gpencil_grid_subdivisions, ToolSettings::gpencil_v3d_align, OVERLAY_PassList::grease_pencil_canvas_ps, blender::MatBase< T, NumCol, NumRow, Alignment >::location(), GP_Sculpt_Settings::lock_axis, OB_GREASE_PENCIL, DRWContextState::obact, View3D::overlay, OVERLAY_shader_gpencil_canvas(), OVERLAY_Data::psl, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), DRWContextState::scene, state, Object::type, DRWContextState::v3d, V3D_GP_SHOW_GRID, V3D_GP_SHOW_GRID_XRAY, V3D_HIDE_OVERLAYS, and blender::MatBase< T, NumCol, NumRow, Alignment >::view().
Referenced by OVERLAY_cache_init().
| void OVERLAY_grease_pencil_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 386 of file overlay_grease_pencil.cc.
References DRW_draw_pass(), OVERLAY_PassList::grease_pencil_canvas_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
|
static |
Definition at line 66 of file overlay_grease_pencil.cc.
References BKE_object_material_get_eval(), DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, DRW_TEXT_CACHE_STRING_PTR, Material::id, ID::name, blender::math::transform_point(), UI_GetThemeColor4ubv(), and DRWContextState::view_layer.
Referenced by OVERLAY_grease_pencil_material_names().
|
static |
Definition at line 91 of file overlay_grease_pencil.cc.
References blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::curves_range(), Object::data, DRW_context_state_get(), is_selection_visible(), blender::bke::AttributeAccessor::lookup_or_default(), overlay_grease_pencil_draw_stroke_color_name(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), DRWContextState::scene, and blender::bke::greasepencil::Drawing::strokes().
Referenced by OVERLAY_edit_grease_pencil_cache_populate().
| void OVERLAY_sculpt_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 313 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, OVERLAY_StorageList::pd, DRWContextState::scene, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_vertex_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 362 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, OVERLAY_StorageList::pd, DRWContextState::scene, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_weight_grease_pencil_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 337 of file overlay_grease_pencil.cc.
References DRW_context_state_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_grease_pencil_points_grp, OVERLAY_PrivateData::edit_grease_pencil_wires_grp, OVERLAY_StorageList::pd, DRWContextState::scene, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().