erebus

view liberebus/src/color.h @ 4:93894c232d65

more changes across the board
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 29 Apr 2014 07:38:40 +0300
parents 4abdce1361b9
children 9621beb22694
line source
1 #ifndef COLOR_H_
2 #define COLOR_H_
4 #include "vmath/vector.h"
6 typedef Vector3 Color;
8 inline float color_luminance(const Color &c) { return c[0] * 0.2126 + c[1] * 0.7152 + c[2] * 0.0722; }
10 #endif // COLOR_H_