diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-13 20:03:14 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-13 20:03:14 +0400 |
commit | 6f153046e0ffec912883ab24b9fda823e9fbeb38 (patch) | |
tree | 9a0d2705acdfe2a920eeaaeb0a0924cc9bf65e37 /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | 5d79c2662e043c35feeb4a31f3c5eb288e93c9c1 (diff) |
Reduce overhead when sampling texture images for brushes. The tests can
be cached and reused.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index bdb1c88c0ce..d8f7a3d8e05 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -37,7 +37,7 @@ struct bContext; struct bglMats; struct Brush; struct ImagePool; -struct ImBuf; +struct ColorSpace; struct ListBase; struct Mesh; struct MTex; @@ -200,7 +200,7 @@ void paint_calc_redraw_planes(float planes[4][4], float paint_calc_object_space_radius(struct ViewContext *vc, const float center[3], float pixel_radius); float paint_get_tex_pixel(struct MTex *mtex, float u, float v, struct ImagePool *pool, int thread); -void paint_get_tex_pixel_col(struct MTex *mtex, float u, float v, float rgba[4], struct ImagePool *pool, int thread, bool convert, struct ImBuf *ibuf); +void paint_get_tex_pixel_col(struct MTex *mtex, float u, float v, float rgba[4], struct ImagePool *pool, int thread, bool convert, struct ColorSpace *colorspace); void paint_sample_color(const struct bContext *C, struct ARegion *ar, int x, int y); void BRUSH_OT_curve_preset(struct wmOperatorType *ot); |