Blender V4.3
overlay_grease_pencil.cc File Reference

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)

Function Documentation

◆ is_selection_visible()

◆ OVERLAY_edit_grease_pencil_cache_init()

◆ OVERLAY_edit_grease_pencil_cache_populate()

◆ OVERLAY_edit_grease_pencil_draw()

void OVERLAY_edit_grease_pencil_draw ( OVERLAY_Data * vedata)

◆ OVERLAY_grease_pencil_cache_init()

void OVERLAY_grease_pencil_cache_init ( OVERLAY_Data * vedata)

Definition at line 189 of file overlay_grease_pencil.cc.

References Scene::cursor, 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(), View3DCursor::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, blender::bke::greasepencil::Layer::to_world_space(), Scene::toolsettings, 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().

◆ OVERLAY_grease_pencil_draw()

void OVERLAY_grease_pencil_draw ( OVERLAY_Data * vedata)

◆ overlay_grease_pencil_draw_stroke_color_name()

◆ OVERLAY_grease_pencil_material_names()

◆ OVERLAY_sculpt_grease_pencil_cache_populate()

◆ OVERLAY_vertex_grease_pencil_cache_populate()

◆ OVERLAY_weight_grease_pencil_cache_populate()