Blender
V3.3
|
Classes | |
class | AbstractPaintMode |
class | ImagePaintMode |
class | ProjectionPaintMode |
struct | PaintOperation |
Functions | |
static void | gradient_draw_line (bContext *UNUSED(C), int x, int y, void *customdata) |
static PaintOperation * | texture_paint_init (bContext *C, wmOperator *op, const float mouse[2]) |
static void | paint_stroke_update_step (bContext *C, wmOperator *UNUSED(op), struct PaintStroke *stroke, PointerRNA *itemptr) |
static void | paint_stroke_redraw (const bContext *C, struct PaintStroke *stroke, bool final) |
static void | paint_stroke_done (const bContext *C, struct 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 242 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_2D_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, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::vc, ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by texture_paint_init().
|
static |
Definition at line 505 of file paint_image_ops_paint.cc.
References C, wmOperator::customdata, and paint_stroke_cancel().
Referenced by PAINT_OT_image_paint().
|
static |
Definition at line 474 of file paint_image_ops_paint.cc.
References C, wmOperator::customdata, OPERATOR_CANCELLED, paint_stroke_done(), paint_stroke_exec(), paint_stroke_new(), paint_stroke_redraw(), paint_stroke_test_start(), paint_stroke_update_step(), wmOperator::ptr, RNA_float_get_array(), RNA_property_collection_lookup_int(), and RNA_struct_find_property().
Referenced by PAINT_OT_image_paint().
|
static |
Definition at line 448 of file paint_image_ops_paint.cc.
References BLI_assert, C, wmOperator::customdata, wmOperatorType::modal, OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, paint_stroke_done(), paint_stroke_free(), paint_stroke_new(), paint_stroke_redraw(), paint_stroke_test_start(), paint_stroke_update_step(), wmOperator::type, wmEvent::type, and WM_event_add_modal_handler().
Referenced by PAINT_OT_image_paint().
|
static |
Definition at line 500 of file paint_image_ops_paint.cc.
References C, wmOperator::customdata, and paint_stroke_modal().
Referenced by PAINT_OT_image_paint().
|
static |
Definition at line 390 of file paint_image_ops_paint.cc.
References BKE_paint_brush(), BKE_reportf(), BRUSH_USE_GRADIENT, C, CTX_data_scene(), ED_image_undo_push_end(), Brush::flag, ImagePaintSettings::flag, IMAGEPAINT_DRAWING, Brush::imagepaint_tool, 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(), paint_stroke_mode_data(), PAINT_TOOL_FILL, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::prevmouse, wmOperator::reports, RPT_WARNING, scene, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::startmouse, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::stroke_handle, and Scene::toolsettings.
Referenced by paint_exec(), and paint_invoke().
|
static |
Definition at line 384 of file paint_image_ops_paint.cc.
References C, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::mode, 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 432 of file paint_image_ops_paint.cc.
References C, wmOperator::customdata, paint_stroke_set_mode_data(), and texture_paint_init().
Referenced by paint_exec(), and paint_invoke().
|
static |
Definition at line 330 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, C, copy_v2_v2(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_manager(), blender::math::distance(), ED_image_undo_restore(), Brush::flag, Brush::imagepaint_tool, 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(), paint_stroke_distance_get(), paint_stroke_mode_data(), PAINT_TOOL_FILL, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::prevmouse, RNA_boolean_get(), RNA_float_get(), RNA_float_get_array(), scene, 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 282 of file paint_image_ops_paint.cc.
References BKE_paint_brush(), BRUSH_USE_GRADIENT, C, copy_v2_v2(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region_view3d(), blender::ed::sculpt_paint::image::ops::paint::PaintOperation::cursor, 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, ImagePaintSettings::flag, gradient_draw_line(), IMAGEPAINT_DRAWING, Brush::imagepaint_tool, ToolSettings::imapaint, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::mode, wmOperatorType::name, NC_SCENE, ND_TOOLSETTINGS, OBACT, ImagePaintSettings::paint, PAINT_MODE_TEXTURE_2D, blender::ed::sculpt_paint::image::ops::paint::AbstractPaintMode::paint_new_stroke(), PAINT_TOOL_FILL, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::prevmouse, wmOperator::ptr, wmOperator::reports, RGN_TYPE_ANY, RNA_enum_get(), scene, SPACE_TYPE_ANY, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::startmouse, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::stroke_handle, tex, Scene::toolsettings, wmOperator::type, blender::ed::sculpt_paint::image::ops::paint::PaintOperation::vc, WM_event_add_notifier(), and WM_paint_cursor_activate().
Referenced by paint_stroke_test_start().