X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=989a0199e460689110a709c5d508284bc9e35f4a;hp=1c50b1631ba6c51db2231235b24a1cb33bb2f586;hb=b8b7f286300668679e61a25beb48f353b5a83f43;hpb=ac539d70a718bce094e1118a3919972445b65979 diff --git a/effect_chain.h b/effect_chain.h index 1c50b16..989a019 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -92,7 +92,14 @@ public: void finalize(); //void render(unsigned char *src, unsigned char *dst); - void render_to_screen(); + void render_to_screen() + { + render_to_fbo(0, 0, 0); + } + + // Render the effect chain to the given FBO. If width=height=0, keeps + // the current viewport. + void render_to_fbo(GLuint fbo, unsigned width, unsigned height); Effect *last_added_effect() { if (nodes.empty()) {