]> git.sesse.net Git - movit/blobdiff - effect.h
Start actually piecing together the GLSL shaders from the effect chain.
[movit] / effect.h
index deeaae45264fddf57a3ffd5c5a57ee3da64b732a..623915b8cd5fea8e4d3ed90fe70679d55ee7d336 100644 (file)
--- a/effect.h
+++ b/effect.h
@@ -4,12 +4,21 @@
 #include <map>
 #include <string>
 
+// 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; }
        virtual bool needs_srgb_primaries() { return true; }
        virtual bool needs_many_samples() { return false; }
        virtual bool needs_mipmaps() { return false; }
+       virtual std::string output_glsl() = 0;
 
        // Neither of these take ownership.
        bool set_int(const std::string&, int value);