Blender V5.3
ED_paint.hh File Reference
#include "DNA_view3d_enums.h"
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define ED_IMAGE_UNDO_TILE_BITS   6
#define ED_IMAGE_UNDO_TILE_SIZE   (1 << ED_IMAGE_UNDO_TILE_BITS)
#define ED_IMAGE_UNDO_TILE_NUMBER(size)

Functions

void blender::ED_paint_cursor_start (Paint *paint, bool(*poll)(bContext *C))
void blender::ED_operatortypes_paint ()
void blender::ED_operatormacros_paint ()
void blender::ED_keymap_paint (wmKeyConfig *keyconf)
eV3DShadingColorType blender::ED_paint_shading_color_override (bContext *C, const PaintModeSettings *settings, Object &ob, eV3DShadingColorType orig_color_type)
bool blender::ED_paint_brush_type_use_canvas (bContext *C, bToolRef *tref)
void blender::ED_paint_brush_type_update_sticky_shading_color (bContext *C, Object *ob)
Image Paint Tile Utilities (Partial Update)
void blender::ED_imapaint_clear_partial_redraw ()
void blender::ED_imapaint_dirty_region (Image *ima, ImBuf *ibuf, ImageUser *iuser, int x, int y, int w, int h)
Texture Paint Bucket Fill Operator
void blender::ED_imapaint_bucket_fill (bContext *C, const float color[3], wmOperator *op, const int mouse[2])
Data Generation for Projective Texturing
void blender::ED_paint_data_warning (ReportList *reports, bool has_uvs, bool has_mat, bool has_tex, bool has_stencil)
bool blender::ED_paint_proj_mesh_data_check (Scene &scene, Object &ob, bool *r_has_uvs, bool *r_has_mat, bool *r_has_tex, bool *r_has_stencil)
Utilities
void blender::ED_image_undo_push_begin (const char *name, PaintMode paint_mode)
void blender::ED_image_undo_push_begin_with_image (const char *name, Image *image, ImBuf *ibuf, ImageUser *iuser)
void blender::ED_image_undo_push_begin_with_image_all_udims (const char *name, Image *image, ImageUser *iuser)
void blender::ED_image_undo_push (Image *image, ImBuf *ibuf, ImageUser *iuser, ImageUndoStep *us)
void blender::ED_image_undo_push_end ()
void blender::ED_image_undo_restore (UndoStep *us)
PaintTileMap * blender::ED_image_paint_tile_map_get ()
void blender::ED_paintcurve_undo_push_begin (const char *name)
void blender::ED_paintcurve_undo_push_end (bContext *C)
Implements ED Undo System
void blender::ED_image_undosys_type (UndoType *ut)
void blender::ED_paintcurve_undosys_type (UndoType *ut)
Paint Tiles

Created on demand while painting, use to access the previous state for some paint operations.

These buffers are also used for undo when available.

const ImBuf * blender::ED_image_paint_tile_find (PaintTileMap *paint_tile_map, Image *image, ImBuf *ibuf, ImageUser *iuser, int x_tile, int y_tile, unsigned short **r_mask, bool validate)
const ImBuf * blender::ED_image_paint_tile_push (PaintTileMap *paint_tile_map, Image *image, ImBuf *ibuf, ImageUser *iuser, int x_tile, int y_tile, unsigned short **r_mask, bool **r_valid)
Enter Vertex Paint Mode
void blender::ED_object_vpaintmode_enter_ex (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
void blender::ED_object_vpaintmode_enter (bContext *C, Depsgraph &depsgraph)
Enter Weight Paint Mode
void blender::ED_object_wpaintmode_enter_ex (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
void blender::ED_object_wpaintmode_enter (bContext *C, Depsgraph &depsgraph)
Exit Vertex Paint Mode
void blender::ED_object_vpaintmode_exit_ex (Scene &scene, Object &ob)
void blender::ED_object_vpaintmode_exit (bContext *C)
Exit Weight Paint Mode
void blender::ED_object_wpaintmode_exit_ex (Scene &scene, Object &ob)
void blender::ED_object_wpaintmode_exit (bContext *C)
Texture Paint Toggle Operator
void blender::ED_object_texture_paint_mode_enter_ex (Main &bmain, Scene &scene, Depsgraph &depsgraph, Object &ob)
void blender::ED_object_texture_paint_mode_enter (bContext *C)
void blender::ED_object_texture_paint_mode_exit_ex (Main &bmain, Scene &scene, Object &ob)
void blender::ED_object_texture_paint_mode_exit (bContext *C)

Macro Definition Documentation

◆ ED_IMAGE_UNDO_TILE_BITS

#define ED_IMAGE_UNDO_TILE_BITS   6

◆ ED_IMAGE_UNDO_TILE_NUMBER

#define ED_IMAGE_UNDO_TILE_NUMBER ( size)

◆ ED_IMAGE_UNDO_TILE_SIZE