From c497a7efabe73514cd051a02b0574e179b0efeb8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Jul 2019 21:15:18 +1000 Subject: ImBuf: add crop function (move out of screendump.c) --- source/blender/imbuf/IMB_imbuf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/imbuf/IMB_imbuf.h') diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 8574f33bce6..fbaa9b06d3b 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -67,6 +67,7 @@ * \attention defined in ??? */ struct ImBuf; +struct rcti; /** * @@ -222,6 +223,8 @@ void IMB_blend_color_byte(unsigned char dst[4], IMB_BlendMode mode); void IMB_blend_color_float(float dst[4], float src1[4], float src2[4], IMB_BlendMode mode); +void IMB_rect_crop(struct ImBuf *ibuf, const struct rcti *crop); + void IMB_rectclip(struct ImBuf *dbuf, struct ImBuf *sbuf, int *destx, -- cgit v1.2.3