]> git.sesse.net Git - movit/blobdiff - glow_effect.cpp
Emulate glReadPixels of GL_ALPHA.
[movit] / glow_effect.cpp
index 064cdac99950e561d9817f4d1115f252451e067b..778c55752fecceb984e4a9f97d39ba7cc4186e9d 100644 (file)
@@ -1,12 +1,16 @@
-#include <math.h>
 #include <assert.h>
+#include <vector>
 
-#include "glow_effect.h"
 #include "blur_effect.h"
-#include "mix_effect.h"
 #include "effect_chain.h"
+#include "glow_effect.h"
+#include "mix_effect.h"
 #include "util.h"
 
+using namespace std;
+
+namespace movit {
+
 GlowEffect::GlowEffect()
        : blur(new BlurEffect),
          cutoff(new HighlightCutoffEffect),
@@ -35,7 +39,7 @@ void GlowEffect::rewrite_graph(EffectChain *graph, Node *self)
        self->disabled = true;
 }
 
-bool GlowEffect::set_float(const std::string &key, float value) {
+bool GlowEffect::set_float(const string &key, float value) {
        if (key == "blurred_mix_amount") {
                return mix->set_float("strength_second", value);
        }
@@ -51,7 +55,9 @@ HighlightCutoffEffect::HighlightCutoffEffect()
        register_float("cutoff", &cutoff);
 }
 
-std::string HighlightCutoffEffect::output_fragment_shader()
+string HighlightCutoffEffect::output_fragment_shader()
 {
        return read_file("highlight_cutoff_effect.frag");
 }
+
+}  // namespace movit