|
Blender V4.3
|
Classes | |
| class | AbstractPaintMode |
| class | ImagePaintMode |
| struct | PaintOperation |
| class | ProjectionPaintMode |
Functions | |
| static void | gradient_draw_line (bContext *, int x, int y, void *customdata) |
| static std::unique_ptr< PaintOperation > | texture_paint_init (bContext *C, wmOperator *op, const float mouse[2]) |
| static void | paint_stroke_update_step (bContext *C, wmOperator *, PaintStroke *stroke, PointerRNA *itemptr) |
| static void | paint_stroke_redraw (const bContext *C, PaintStroke *stroke, bool final) |
| static void | paint_stroke_done (const bContext *C, PaintStroke *stroke) |
| static bool | paint_stroke_test_start (bContext *C, wmOperator *op, const float mouse[2]) |
| static int | paint_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | paint_exec (bContext *C, wmOperator *op) |
| static int | paint_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | paint_cancel (bContext *C, wmOperator *op) |
|
static |
Definition at line 245 of file paint_image_ops_paint.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4ub(), immVertex2i(), immVertexFormat(), pos, ViewContext::region, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::startmouse, and blender::ed::sculpt_paint::image::ops::paint::PaintOperation::vc.
Referenced by texture_paint_init().
|
static |
Definition at line 528 of file paint_image_ops_paint.cc.
References wmOperator::customdata, and blender::ed::sculpt_paint::paint_stroke_cancel().
|
static |
Definition at line 480 of file paint_image_ops_paint.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), BKE_paintmode_get_active_from_context(), CTX_data_scene(), wmOperator::customdata, OPERATOR_CANCELLED, blender::ed::sculpt_paint::paint_brush_update(), paint_stroke_done(), blender::ed::sculpt_paint::paint_stroke_exec(), blender::ed::sculpt_paint::paint_stroke_jitter_pos(), blender::ed::sculpt_paint::paint_stroke_new(), paint_stroke_redraw(), paint_stroke_test_start(), paint_stroke_update_step(), wmOperator::ptr, RNA_float_get(), RNA_float_get_array(), RNA_property_collection_lookup_int(), and RNA_struct_find_property().
|
static |
Definition at line 454 of file paint_image_ops_paint.cc.
References BLI_assert, wmOperator::customdata, wmOperatorType::modal, OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, paint_stroke_done(), blender::ed::sculpt_paint::paint_stroke_free(), blender::ed::sculpt_paint::paint_stroke_new(), paint_stroke_redraw(), paint_stroke_test_start(), paint_stroke_update_step(), wmEvent::type, wmOperator::type, and WM_event_add_modal_handler().
|
static |
Definition at line 523 of file paint_image_ops_paint.cc.
References wmOperator::customdata, and blender::ed::sculpt_paint::paint_stroke_modal().
|
static |
Definition at line 396 of file paint_image_ops_paint.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_reportf(), BRUSH_USE_GRADIENT, CTX_data_scene(), ED_image_undo_push_end(), Brush::flag, ImagePaintSettings::flag, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, ToolSettings::imapaint, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::mode, ImagePaintSettings::paint, blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode::paint_bucket_fill(), blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode::paint_gradient_fill(), blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode::paint_stroke_done(), blender::ed::sculpt_paint::paint_stroke_mode_data(), blender::ed::sculpt_paint::image::ops::paint::PaintOperation::prevmouse, RPT_WARNING, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::startmouse, and blender::ed::sculpt_paint::image::ops::paint::PaintOperation::stroke_handle.
Referenced by paint_exec(), and paint_invoke().
|
static |
Definition at line 390 of file paint_image_ops_paint.cc.
References blender::ed::sculpt_paint::image::ops::paint::PaintOperation::mode, blender::ed::sculpt_paint::paint_stroke_mode_data(), blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode::paint_stroke_redraw(), and blender::ed::sculpt_paint::image::ops::paint::PaintOperation::stroke_handle.
Referenced by paint_exec(), and paint_invoke().
|
static |
Definition at line 438 of file paint_image_ops_paint.cc.
References wmOperator::customdata, blender::ed::sculpt_paint::paint_stroke_set_mode_data(), and texture_paint_init().
Referenced by paint_exec(), and paint_invoke().
|
static |
Definition at line 336 of file paint_image_ops_paint.cc.
References BKE_brush_alpha_get(), BKE_brush_alpha_set(), BKE_brush_use_alpha_pressure(), BKE_paint_brush(), BRUSH_ACCUMULATE, BRUSH_ANCHORED, BRUSH_DRAG_DOT, copy_v2_v2(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_manager(), ED_image_undo_restore(), Brush::flag, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, ToolSettings::imapaint, max_ff(), blender::ed::sculpt_paint::image::ops::paint::PaintOperation::mode, UnifiedPaintSettings::overlap_factor, ImagePaintSettings::paint, blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode::paint_stroke(), blender::ed::sculpt_paint::paint_stroke_distance_get(), blender::ed::sculpt_paint::paint_stroke_mode_data(), blender::ed::sculpt_paint::image::ops::paint::PaintOperation::prevmouse, RNA_boolean_get(), RNA_float_get(), RNA_float_get_array(), size(), UndoStack::step_init, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::stroke_handle, wmWindowManager::undo_stack, and ToolSettings::unified_paint_settings.
Referenced by paint_exec(), and paint_invoke().
|
static |
Definition at line 285 of file paint_image_ops_paint.cc.
References BKE_paint_brush(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), BRUSH_USE_GRADIENT, copy_v2_v2(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region_view3d(), depsgraph, ED_image_tools_paint_poll(), ED_image_undo_push_begin(), ED_paint_data_warning(), ED_paint_proj_mesh_data_check(), ED_view3d_viewcontext_init(), Brush::flag, gradient_draw_line(), Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, IMAGEPAINT_DRAWING, wmOperatorType::name, NC_SCENE, ND_TOOLSETTINGS, wmOperator::ptr, wmOperator::reports, RGN_TYPE_ANY, RNA_enum_get(), SPACE_TYPE_ANY, tex, Texture2D, wmOperator::type, WM_event_add_notifier(), and WM_paint_cursor_activate().
Referenced by paint_stroke_test_start().