Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_sculpt.h
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
| void ED_keymap_paint(struct wmKeyConfig *keyconf); | void ED_keymap_paint(struct wmKeyConfig *keyconf); | ||||
| /* paint_undo.c */ | /* paint_undo.c */ | ||||
| #define UNDO_PAINT_IMAGE 0 | #define UNDO_PAINT_IMAGE 0 | ||||
| #define UNDO_PAINT_MESH 1 | #define UNDO_PAINT_MESH 1 | ||||
| typedef void (*UndoRestoreCb)(struct bContext *C, struct ListBase *lb); | typedef void (*UndoRestoreCb)(struct bContext *C, struct ListBase *lb); | ||||
| typedef void (*UndoFreeCb)(struct ListBase *lb); | typedef void (*UndoFreeCb)(struct ListBase *lb); | ||||
| typedef bool (*UndoCleanupCb)(struct bContext *C, ListBase *lb); | |||||
| int ED_undo_paint_step(struct bContext *C, int type, int step, const char *name); | int ED_undo_paint_step(struct bContext *C, int type, int step, const char *name); | ||||
| void ED_undo_paint_step_num(struct bContext *C, int type, int num); | void ED_undo_paint_step_num(struct bContext *C, int type, int num); | ||||
| const char *ED_undo_paint_get_name(int type, int nr, int *active); | const char *ED_undo_paint_get_name(struct bContext *C, int type, int nr, int *active); | ||||
| void ED_undo_paint_free(void); | void ED_undo_paint_free(void); | ||||
| int ED_undo_paint_valid(int type, const char *name); | int ED_undo_paint_valid(int type, const char *name); | ||||
| bool ED_undo_paint_empty(int type); | bool ED_undo_paint_empty(int type); | ||||
| void ED_undo_paint_push_begin(int type, const char *name, UndoRestoreCb restore, UndoFreeCb free); | void ED_undo_paint_push_begin(int type, const char *name, UndoRestoreCb restore, UndoFreeCb free, UndoCleanupCb is_valid); | ||||
| void ED_undo_paint_push_end(int type); | void ED_undo_paint_push_end(int type); | ||||
| /* image painting specific undo */ | /* image painting specific undo */ | ||||
| void ED_image_undo_restore(struct bContext *C, struct ListBase *lb); | void ED_image_undo_restore(struct bContext *C, struct ListBase *lb); | ||||
| void ED_image_undo_free(struct ListBase *lb); | void ED_image_undo_free(struct ListBase *lb); | ||||
| void ED_imapaint_clear_partial_redraw(void); | void ED_imapaint_clear_partial_redraw(void); | ||||
| void ED_imapaint_dirty_region(struct Image *ima, struct ImBuf *ibuf, int x, int y, int w, int h); | void ED_imapaint_dirty_region(struct Image *ima, struct ImBuf *ibuf, int x, int y, int w, int h); | ||||
| #endif | #endif | ||||