X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect.h;h=a7b0e4be0565a0375b0ed4231c3bf03e5894b75a;hp=deeaae45264fddf57a3ffd5c5a57ee3da64b732a;hb=a88f299483ffe5068cd2828513078b9103325da8;hpb=e61807327b9a1f98f39dd5e1496254905f78e581 diff --git a/effect.h b/effect.h index deeaae4..a7b0e4b 100644 --- a/effect.h +++ b/effect.h @@ -4,6 +4,14 @@ #include #include +// Can alias on a float[3]. +struct RGBTriplet { + RGBTriplet(float r, float g, float b) + : r(r), g(g), b(b) {} + + float r, g, b; +}; + class Effect { public: virtual bool needs_linear_light() { return true; }