Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_paint.h
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | void ED_imapaint_dirty_region(struct Image *ima, | ||||
| int h, | int h, | ||||
| bool find_old); | bool find_old); | ||||
| void ED_imapaint_bucket_fill(struct bContext *C, | void ED_imapaint_bucket_fill(struct bContext *C, | ||||
| float color[3], | float color[3], | ||||
| struct wmOperator *op, | struct wmOperator *op, | ||||
| const int mouse[2]); | const int mouse[2]); | ||||
| /* paint_image_proj.c */ | /* paint_image_proj.c */ | ||||
| void ED_paint_data_warning(struct ReportList *reports, bool uvs, bool mat, bool tex, bool stencil); | void ED_paint_data_warning(struct ReportList *reports, bool uvs, bool mat, bool tex, bool stencil); | ||||
| /** | |||||
| * Make sure that active object has a material, | |||||
| * and assign UVs and image layers if they do not exist. | |||||
| */ | |||||
| bool ED_paint_proj_mesh_data_check( | bool ED_paint_proj_mesh_data_check( | ||||
| struct Scene *scene, struct Object *ob, bool *uvs, bool *mat, bool *tex, bool *stencil); | struct Scene *scene, struct Object *ob, bool *uvs, bool *mat, bool *tex, bool *stencil); | ||||
| /* image_undo.c */ | /* image_undo.c */ | ||||
| /** | |||||
| * The caller is responsible for running #ED_image_undo_push_end, | |||||
| * failure to do so causes an invalid state for the undo system. | |||||
| */ | |||||
| void ED_image_undo_push_begin(const char *name, int paint_mode); | void ED_image_undo_push_begin(const char *name, int paint_mode); | ||||
| void ED_image_undo_push_begin_with_image(const char *name, | void ED_image_undo_push_begin_with_image(const char *name, | ||||
| struct Image *image, | struct Image *image, | ||||
| struct ImBuf *ibuf, | struct ImBuf *ibuf, | ||||
| struct ImageUser *iuser); | struct ImageUser *iuser); | ||||
| void ED_image_undo_push_end(void); | void ED_image_undo_push_end(void); | ||||
| /** | |||||
| * Restore painting image to previous state. Used for anchored and drag-dot style brushes. | |||||
| */ | |||||
| void ED_image_undo_restore(struct UndoStep *us); | void ED_image_undo_restore(struct UndoStep *us); | ||||
| /** Export for ED_undo_sys. */ | |||||
| void ED_image_undosys_type(struct UndoType *ut); | void ED_image_undosys_type(struct UndoType *ut); | ||||
| void *ED_image_paint_tile_find(struct ListBase *paint_tiles, | void *ED_image_paint_tile_find(struct ListBase *paint_tiles, | ||||
| struct Image *image, | struct Image *image, | ||||
| struct ImBuf *ibuf, | struct ImBuf *ibuf, | ||||
| struct ImageUser *iuser, | struct ImageUser *iuser, | ||||
| int x_tile, | int x_tile, | ||||
| int y_tile, | int y_tile, | ||||
| Show All 16 Lines | |||||
| struct ListBase *ED_image_paint_tile_list_get(void); | struct ListBase *ED_image_paint_tile_list_get(void); | ||||
| #define ED_IMAGE_UNDO_TILE_BITS 6 | #define ED_IMAGE_UNDO_TILE_BITS 6 | ||||
| #define ED_IMAGE_UNDO_TILE_SIZE (1 << ED_IMAGE_UNDO_TILE_BITS) | #define ED_IMAGE_UNDO_TILE_SIZE (1 << ED_IMAGE_UNDO_TILE_BITS) | ||||
| #define ED_IMAGE_UNDO_TILE_NUMBER(size) \ | #define ED_IMAGE_UNDO_TILE_NUMBER(size) \ | ||||
| (((size) + ED_IMAGE_UNDO_TILE_SIZE - 1) >> ED_IMAGE_UNDO_TILE_BITS) | (((size) + ED_IMAGE_UNDO_TILE_SIZE - 1) >> ED_IMAGE_UNDO_TILE_BITS) | ||||
| /* paint_curve_undo.c */ | /* paint_curve_undo.c */ | ||||
| void ED_paintcurve_undo_push_begin(const char *name); | void ED_paintcurve_undo_push_begin(const char *name); | ||||
| void ED_paintcurve_undo_push_end(struct bContext *C); | void ED_paintcurve_undo_push_end(struct bContext *C); | ||||
| /** Export for ED_undo_sys. */ | |||||
| void ED_paintcurve_undosys_type(struct UndoType *ut); | void ED_paintcurve_undosys_type(struct UndoType *ut); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||