erebus

diff liberebus/src/color.h @ 0:4abdce1361b9

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 27 Apr 2014 16:02:47 +0300
parents
children 474a0244f57d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/liberebus/src/color.h	Sun Apr 27 16:02:47 2014 +0300
     1.3 @@ -0,0 +1,10 @@
     1.4 +#ifndef COLOR_H_
     1.5 +#define COLOR_H_
     1.6 +
     1.7 +#include "vmath/vector.h"
     1.8 +
     1.9 +typedef Vector3 Color;
    1.10 +
    1.11 +inline float color_luminance(const Color &c) { return c[0] * 0.2126 + c[1] * 0.7152 + c[2] * 0.0722; }
    1.12 +
    1.13 +#endif	// COLOR_H_
    1.14 \ No newline at end of file