]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Add a file-level comment for EffectChain.
[movit] / effect_chain.h
index ddabad959bb292b7798af46e69c6869ccca1c1c5..407648bc9c5a6887e331d01bb4d372390509c219 100644 (file)
@@ -1,5 +1,11 @@
-#ifndef _EFFECT_CHAIN_H
-#define _EFFECT_CHAIN_H 1
+#ifndef _MOVIT_EFFECT_CHAIN_H
+#define _MOVIT_EFFECT_CHAIN_H 1
+
+// An EffectChain is the largest basic entity in Movit; it contains everything
+// needed to connects a series of effects, from inputs to outputs, and render
+// them. Generally you set up your effect chain once and then call its render
+// functions once per frame; setting one up can be relatively expensive,
+// but rendering is fast.
 
 #include <GL/glew.h>
 #include <stdio.h>
@@ -229,12 +235,10 @@ private:
        Effect *dither_effect;
 
        std::vector<Input *> inputs;  // Also contained in nodes.
-
-       GLuint fbo;
        std::vector<Phase *> phases;
 
        unsigned num_dither_bits;
        bool finalized;
 };
 
-#endif // !defined(_EFFECT_CHAIN_H)
+#endif // !defined(_MOVIT_EFFECT_CHAIN_H)