Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-01-25 10:28:11 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-25 10:28:11 +0300
commitaf4270eb682cf3139bb6ef60798048e20937d222 (patch)
tree28ec2fa6fd5dfa9c6102568b1fe76bb83ef93208 /source/blender/blenkernel/BKE_brush.h
parentde6d5b1540dd940482e8c514c4c04d59629eade7 (diff)
Did some refactoring with brush and sculpt to make radial control easier to add to other modes.
Diffstat (limited to 'source/blender/blenkernel/BKE_brush.h')
-rw-r--r--source/blender/blenkernel/BKE_brush.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h
index 07ca975c46f..eba7558d492 100644
--- a/source/blender/blenkernel/BKE_brush.h
+++ b/source/blender/blenkernel/BKE_brush.h
@@ -34,6 +34,7 @@
struct ID;
struct Brush;
struct ImBuf;
+struct wmOperator;
/* datablock functions */
struct Brush *add_brush(char *name);
@@ -58,6 +59,7 @@ typedef enum {
BRUSH_PRESET_MAX
} BrushCurvePreset;
void brush_curve_preset(struct Brush *b, BrushCurvePreset preset);
+float brush_curve_strength(struct Brush *br, float p, const float len);
/* sampling */
float brush_sample_falloff(struct Brush *brush, float dist);
@@ -79,5 +81,12 @@ int brush_painter_paint(BrushPainter *painter, BrushFunc func, float *pos,
void brush_painter_break_stroke(BrushPainter *painter);
void brush_painter_free(BrushPainter *painter);
+/* texture */
+unsigned int *brush_gen_texture_cache(struct Brush *br, int half_side);
+
+/* radial control */
+void brush_radial_control_invoke(struct wmOperator *op, struct Brush *br);
+int brush_radial_control_exec(struct wmOperator *op, struct Brush *br);
+
#endif