diff options
Diffstat (limited to 'source/blender/blenlib/BLI_math_color.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_color.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_color.h b/source/blender/blenlib/BLI_math_color.h index 0e33ee2be3f..1463ff90e5a 100644 --- a/source/blender/blenlib/BLI_math_color.h +++ b/source/blender/blenlib/BLI_math_color.h @@ -86,6 +86,12 @@ void linearrgb_to_srgb_rgba_buf(float *col, int tot); void srgb_to_linearrgb_rgba_rgba_buf(float *col_to, float *col_from, int tot); void linearrgb_to_srgb_rgba_rgba_buf(float *col_to, float *col_from, int tot); +/* rgba buffer convenience functions */ +void srgb_to_linearrgb_rgba_buf(float *col, int tot); +void linearrgb_to_srgb_rgba_buf(float *col, int tot); +void srgb_to_linearrgb_rgba_rgba_buf(float *col_to, float *col_from, int tot); +void linearrgb_to_srgb_rgba_rgba_buf(float *col_to, float *col_from, int tot); + /************************** Other *************************/ int constrain_rgb(float *r, float *g, float *b); |