erebus

view liberebus/src/color.h @ 48:9971a08f4104

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Feb 2016 00:29:31 +0200
parents bab25c0ce337
children
line source
1 #ifndef COLOR_H_
2 #define COLOR_H_
4 #include <gmath/gmath.h>
6 typedef Vec4 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_