|
Blender V4.3
|
#include <overlay_next_grease_pencil.hh>
Classes | |
| struct | ViewParameters |
Public Member Functions | |
| void | begin_sync (Resources &res, const State &state, const View &view) |
| void | edit_object_sync (Manager &manager, const ObjectRef &ob_ref, const State &state, Resources &) |
| void | paint_object_sync (Manager &manager, const ObjectRef &ob_ref, const State &state, Resources &res) |
| void | sculpt_object_sync (Manager &manager, const ObjectRef &ob_ref, const State &state, Resources &res) |
| void | object_sync (const ObjectRef &ob_ref, Resources &, State &state) |
| void | draw (Framebuffer &framebuffer, Manager &manager, View &view) |
| void | draw_color_only (Framebuffer &framebuffer, Manager &manager, View &view) |
Static Public Member Functions | |
| static void | draw_grease_pencil (PassMain::Sub &pass, const ViewParameters &view, const Scene *scene, Object *ob, ResourceHandle res_handle, select::ID select_id=select::SelectMap::select_invalid_id()) |
Definition at line 24 of file overlay_next_grease_pencil.hh.
|
inline |
Definition at line 45 of file overlay_next_grease_pencil.hh.
References blender::draw::overlay::ShaderModule::curve_edit_line, blender::draw::overlay::ShaderModule::curve_edit_points, DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, ED_grease_pencil_edit_selection_domain_get(), blender::draw::overlay::Resources::globals_buf, View3D::gp_flag, GP_PROJECT_DEPTH_STROKE, GP_PROJECT_DEPTH_VIEW, ToolSettings::gpencil_selectmode_sculpt, ToolSettings::gpencil_v3d_align, blender::draw::overlay::ShaderModule::grid_grease_pencil, blender::draw::detail::Pass< DrawCommandBufType >::init(), OB_MODE_EDIT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT_GREASE_PENCIL, OB_MODE_VERTEX_GREASE_PENCIL, OB_MODE_WEIGHT_GREASE_PENCIL, blender::bke::Point, blender::draw::detail::PassBase< DrawCommandBufType >::shader_set(), blender::draw::overlay::Resources::shaders, SPACE_VIEW3D, state, blender::draw::detail::PassBase< DrawCommandBufType >::sub(), V3D_GP_SHOW_EDIT_LINES, V3D_GP_SHOW_GRID, V3D_GP_SHOW_GRID_XRAY, V3D_GP_SHOW_STROKE_DIRECTION, and blender::draw::overlay::Resources::weight_ramp_tx.
|
inline |
Definition at line 212 of file overlay_next_grease_pencil.hh.
References GPU_framebuffer_bind(), and blender::draw::Manager::submit().
|
inline |
Definition at line 222 of file overlay_next_grease_pencil.hh.
References GPU_framebuffer_bind(), blender::draw::Manager::submit(), blender::draw::View::sync(), and blender::draw::overlay::winmat_polygon_offset().
|
inlinestatic |
Definition at line 255 of file overlay_next_grease_pencil.hh.
References BKE_gpencil_material_settings(), color_tx, blender::bke::Curve, Object::data, blender::draw::DRW_cache_grease_pencil_color_buffer_get(), blender::draw::DRW_cache_grease_pencil_get(), blender::draw::DRW_cache_grease_pencil_position_buffer_get(), GreasePencil::flag, MaterialGPencilStyle::flag, blender::index_mask::IndexMask::foreach_index(), GP_MATERIAL_FILL_SHOW, GP_MATERIAL_HIDE, GP_MATERIAL_STROKE_SHOW, GREASE_PENCIL_STROKE_ORDER_3D, int, blender::bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR, mat4_to_scale(), and blender::ed::greasepencil::retrieve_visible_strokes().
|
inline |
Definition at line 146 of file overlay_next_grease_pencil.hh.
References blender::draw::detail::PassBase< DrawCommandBufType >::draw(), blender::draw::DRW_cache_grease_pencil_edit_lines_get(), blender::draw::DRW_cache_grease_pencil_edit_points_get(), blender::draw::DRW_cache_grease_pencil_weight_lines_get(), blender::draw::DRW_cache_grease_pencil_weight_points_get(), blender::draw::ObjectRef::object, state, and blender::draw::Manager::unique_handle().
Referenced by paint_object_sync(), and sculpt_object_sync().
|
inline |
Definition at line 188 of file overlay_next_grease_pencil.hh.
References blender::draw::detail::PassBase< DrawCommandBufType >::draw_procedural(), GPU_PRIM_LINES, blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::draw::ObjectRef::object, blender::draw::detail::PassBase< DrawCommandBufType >::push_constant(), state, blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis().
|
inline |
Definition at line 170 of file overlay_next_grease_pencil.hh.
References edit_object_sync(), and state.
|
inline |
Definition at line 179 of file overlay_next_grease_pencil.hh.
References edit_object_sync(), and state.