X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fcolor.h;fp=src%2Fcolor.h;h=2fe4db4aa9bb56e070723c9801ce4bedacb66151;hb=05cc7dce02b656e633c880dcc55acdf370cb25c1;hp=0000000000000000000000000000000000000000;hpb=b7ea5b1ae3f0f0a5eba13b49e303b49876ee209e;p=vrfileman diff --git a/src/color.h b/src/color.h new file mode 100644 index 0000000..2fe4db4 --- /dev/null +++ b/src/color.h @@ -0,0 +1,12 @@ +#ifndef COLOR_H_ +#define COLOR_H_ + +#include "gmath/gmath.h" + +typedef Vec3 Color; + +Color color(float r, float g, float b); +Color linear_to_srgb(const Color &c); +Color srgb_to_linear(const Color &c); + +#endif // COLOR_H_