diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-14 23:22:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-14 23:22:55 +0400 |
commit | 813348a4eeeb97536cc47a9eb30605cdb68ca781 (patch) | |
tree | a1006b6d371b876d3be7032c557ac115bfd56d50 /source/blender/compositor/operations/COM_GlareBaseOperation.h | |
parent | 8ae116fbbb505be7055046eb15ba82ced203ced2 (diff) |
code cleanup: replace most fRGB functions with inline vector functions
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareBaseOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_GlareBaseOperation.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/compositor/operations/COM_GlareBaseOperation.h b/source/blender/compositor/operations/COM_GlareBaseOperation.h index dc708044d31..ac67ac055e9 100644 --- a/source/blender/compositor/operations/COM_GlareBaseOperation.h +++ b/source/blender/compositor/operations/COM_GlareBaseOperation.h @@ -32,16 +32,6 @@ typedef float fRGB[4]; /* TODO - replace with BLI_math_vector */ -/* copy c2 to c1 */ -#define fRGB_copy(c1, c2) { c1[0] = c2[0]; c1[1] = c2[1]; c1[2] = c2[2]; c1[3] = c2[3]; } (void)0 -/* add c2 to c1 */ -#define fRGB_add(c1, c2) { c1[0] += c2[0]; c1[1] += c2[1]; c1[2] += c2[2]; } (void)0 -/* multiply c by float value s */ -#define fRGB_mult(c, s) { c[0] *= s; c[1] *= s; c[2] *= s; } (void)0 -/* multiply c2 by s and add to c1 */ -#define fRGB_madd(c1, c2, s) { c1[0] += c2[0] * s; c1[1] += c2[1] * s; c1[2] += c2[2] * s; } (void)0 -/* multiply c2 by color c1 */ -#define fRGB_colormult(c, cs) { c[0] *= cs[0]; c[1] *= cs[1]; c[2] *= cs[2]; } (void)0 /* multiply c2 by color rgb, rgb as separate arguments */ #define fRGB_rgbmult(c, r, g, b) { c[0] *= (r); c[1] *= (g); c[2] *= (b); } (void)0 |