erebus

annotate 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
rev   line source
nuclear@0 1 #ifndef COLOR_H_
nuclear@0 2 #define COLOR_H_
nuclear@0 3
nuclear@0 4 #include "vmath/vector.h"
nuclear@0 5
nuclear@0 6 typedef Vector3 Color;
nuclear@0 7
nuclear@0 8 inline float color_luminance(const Color &c) { return c[0] * 0.2126 + c[1] * 0.7152 + c[2] * 0.0722; }
nuclear@0 9
nuclear@0 10 #endif // COLOR_H_