X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=slice_effect.h;h=1c363ea7b104c19ccd31a6e82a74b50f95ec16c1;hp=6380c1665279078623a802c9ccf2f7db4f17574d;hb=5b6ab865efa692b25590f302c111b30680fbacdd;hpb=f3591ae239781d0587a141e14633e172ba9e376b diff --git a/slice_effect.h b/slice_effect.h index 6380c16..1c363ea 100644 --- a/slice_effect.h +++ b/slice_effect.h @@ -10,7 +10,7 @@ // Note that vertical slices happen from the bottom, not the top, due to the // OpenGL coordinate system. -#include +#include #include #include "effect.h" @@ -29,10 +29,12 @@ public: unsigned *virtual_width, unsigned *virtual_height) const; void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); + virtual void inform_added(EffectChain *chain) { this->chain = chain; } enum Direction { HORIZONTAL = 0, VERTICAL = 1 }; private: + EffectChain *chain; int input_width, input_height; int input_slice_size, output_slice_size; Direction direction;