Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_paint.h
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| struct Object; | struct Object; | ||||
| struct Paint; | struct Paint; | ||||
| struct PaintCurve; | struct PaintCurve; | ||||
| struct Palette; | struct Palette; | ||||
| struct PaletteColor; | struct PaletteColor; | ||||
| struct PBVH; | struct PBVH; | ||||
| struct ReportList; | struct ReportList; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | struct ViewLayer; | ||||
| struct Sculpt; | struct Sculpt; | ||||
| struct StrokeCache; | struct StrokeCache; | ||||
| struct Tex; | struct Tex; | ||||
| struct ImagePool; | struct ImagePool; | ||||
| struct UnifiedPaintSettings; | struct UnifiedPaintSettings; | ||||
| struct EvaluationContext; | struct EvaluationContext; | ||||
| enum eOverlayFlags; | enum eOverlayFlags; | ||||
| Show All 22 Lines | typedef enum eOverlayControlFlags { | ||||
| PAINT_OVERLAY_OVERRIDE_PRIMARY = (1 << 5), | PAINT_OVERLAY_OVERRIDE_PRIMARY = (1 << 5), | ||||
| PAINT_OVERLAY_OVERRIDE_SECONDARY = (1 << 6) | PAINT_OVERLAY_OVERRIDE_SECONDARY = (1 << 6) | ||||
| } eOverlayControlFlags; | } eOverlayControlFlags; | ||||
| #define PAINT_OVERRIDE_MASK (PAINT_OVERLAY_OVERRIDE_SECONDARY | \ | #define PAINT_OVERRIDE_MASK (PAINT_OVERLAY_OVERRIDE_SECONDARY | \ | ||||
| PAINT_OVERLAY_OVERRIDE_PRIMARY | \ | PAINT_OVERLAY_OVERRIDE_PRIMARY | \ | ||||
| PAINT_OVERLAY_OVERRIDE_CURSOR) | PAINT_OVERLAY_OVERRIDE_CURSOR) | ||||
| void BKE_paint_invalidate_overlay_tex(struct Scene *scene, struct SceneLayer *sl, const struct Tex *tex); | void BKE_paint_invalidate_overlay_tex(struct Scene *scene, struct ViewLayer *sl, const struct Tex *tex); | ||||
| void BKE_paint_invalidate_cursor_overlay(struct Scene *scene, struct SceneLayer *sl, struct CurveMapping *curve); | void BKE_paint_invalidate_cursor_overlay(struct Scene *scene, struct ViewLayer *sl, struct CurveMapping *curve); | ||||
| void BKE_paint_invalidate_overlay_all(void); | void BKE_paint_invalidate_overlay_all(void); | ||||
| eOverlayControlFlags BKE_paint_get_overlay_flags(void); | eOverlayControlFlags BKE_paint_get_overlay_flags(void); | ||||
| void BKE_paint_reset_overlay_invalid(eOverlayControlFlags flag); | void BKE_paint_reset_overlay_invalid(eOverlayControlFlags flag); | ||||
| void BKE_paint_set_overlay_override(enum eOverlayFlags flag); | void BKE_paint_set_overlay_override(enum eOverlayFlags flag); | ||||
| /* palettes */ | /* palettes */ | ||||
| void BKE_palette_free(struct Palette *palette); | void BKE_palette_free(struct Palette *palette); | ||||
| struct Palette *BKE_palette_add(struct Main *bmain, const char *name); | struct Palette *BKE_palette_add(struct Main *bmain, const char *name); | ||||
| Show All 17 Lines | |||||
| void BKE_paint_init(struct Scene *sce, ePaintMode mode, const char col[3]); | void BKE_paint_init(struct Scene *sce, ePaintMode mode, const char col[3]); | ||||
| void BKE_paint_free(struct Paint *p); | void BKE_paint_free(struct Paint *p); | ||||
| void BKE_paint_copy(struct Paint *src, struct Paint *tar, const int flag); | void BKE_paint_copy(struct Paint *src, struct Paint *tar, const int flag); | ||||
| void BKE_paint_cavity_curve_preset(struct Paint *p, int preset); | void BKE_paint_cavity_curve_preset(struct Paint *p, int preset); | ||||
| short BKE_paint_object_mode_from_paint_mode(ePaintMode mode); | short BKE_paint_object_mode_from_paint_mode(ePaintMode mode); | ||||
| struct Paint *BKE_paint_get_active_from_paintmode(struct Scene *sce, ePaintMode mode); | struct Paint *BKE_paint_get_active_from_paintmode(struct Scene *sce, ePaintMode mode); | ||||
| struct Paint *BKE_paint_get_active(struct Scene *sce, struct SceneLayer *sl); | struct Paint *BKE_paint_get_active(struct Scene *sce, struct ViewLayer *sl); | ||||
| struct Paint *BKE_paint_get_active_from_context(const struct bContext *C); | struct Paint *BKE_paint_get_active_from_context(const struct bContext *C); | ||||
| ePaintMode BKE_paintmode_get_active_from_context(const struct bContext *C); | ePaintMode BKE_paintmode_get_active_from_context(const struct bContext *C); | ||||
| struct Brush *BKE_paint_brush(struct Paint *paint); | struct Brush *BKE_paint_brush(struct Paint *paint); | ||||
| void BKE_paint_brush_set(struct Paint *paint, struct Brush *br); | void BKE_paint_brush_set(struct Paint *paint, struct Brush *br); | ||||
| struct Palette *BKE_paint_palette(struct Paint *paint); | struct Palette *BKE_paint_palette(struct Paint *paint); | ||||
| void BKE_paint_palette_set(struct Paint *p, struct Palette *palette); | void BKE_paint_palette_set(struct Paint *p, struct Palette *palette); | ||||
| void BKE_paint_curve_set(struct Brush *br, struct PaintCurve *pc); | void BKE_paint_curve_set(struct Brush *br, struct PaintCurve *pc); | ||||
| void BKE_paint_curve_clamp_endpoint_add_index(struct PaintCurve *pc, const int add_index); | void BKE_paint_curve_clamp_endpoint_add_index(struct PaintCurve *pc, const int add_index); | ||||
| ▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines | |||||