]> git.sesse.net Git - movit/blobdiff - fft_pass_effect.h
Merge branch 'epoxy' into epoxy
[movit] / fft_pass_effect.h
index 1fd4ea2c1886ed0bd6fb1f358954989770e0e5da..90e88bc1fddd94650c1deae08011e9c2d0e5395e 100644 (file)
@@ -50,7 +50,7 @@
 // scaling), and as fp16 has quite limited range at times, this can be relevant
 // on some GPUs for larger sizes.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <assert.h>
 #include <stdio.h>
 #include <string>
@@ -98,10 +98,13 @@ public:
                *width = *virtual_width = input_width;
                *height = *virtual_height = input_height;
        }
+
+       virtual void inform_added(EffectChain *chain) { this->chain = chain; }
        
        enum Direction { HORIZONTAL = 0, VERTICAL = 1 };
 
 private:
+       EffectChain *chain;
        int input_width, input_height;
        GLuint tex;
        int fft_size;